Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM base
FROM base AS run

# Libuv 1.45.0 is affected by a kernel bug on certain kernels.
# This leads to errors where Garden tool downloading errors with ETXTBSY
Expand Down Expand Up @@ -49,3 +49,12 @@ RUN npm install -g pnpm@10
USER skpr

ENV PATH /data/node_modules/.bin:$PATH

# Temporary build stage where we can run the test suite.
FROM run AS test
COPY --from=ghcr.io/goss-org/goss:latest /usr/bin/goss /usr/bin/goss
ADD goss.yml /etc/goss/goss.yml
RUN goss --gossfile=/etc/goss/goss.yml validate

# Swap back to the run stage.
FROM run
18 changes: 18 additions & 0 deletions goss.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
command:
npm:
exec: "npm --help"
exit-status: 1
stdout:
- DISCLAIMER

yarn:
exec: "yarn --help"
exit-status: 0
stdout:
- DISCLAIMER

pnpm:
exec: "pnpm --help"
exit-status: 0
stdout:
- "compiled to binary"
20 changes: 0 additions & 20 deletions tests.yml

This file was deleted.