Compare commits

..

No commits in common. "d6fe7ec3ffd4a070d15cce02d033b7d8ad0b887b" and "a1977e3efd6242b3fcc39e231e8a3142dd5d6eea" have entirely different histories.

3 changed files with 5 additions and 15 deletions

View file

@ -12,7 +12,6 @@ data
.DS_Store .DS_Store
npm-debug.log* npm-debug.log*
Dockerfile Dockerfile
Dockerfile.check
.dockerignore .dockerignore
docker-compose.yml docker-compose.yml
extracted extracted

View file

@ -17,9 +17,11 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Lint and test - name: Lint and test
# Built, not mounted: this job runs in a container, so a host bind mount # In the runner's own Docker, so this needs no extra actions. A failure
# of $PWD arrives empty. A failure here stops the image being built. # here stops the image being built, rather than deploying a broken one.
run: docker build -f Dockerfile.check -t printhive-check . run: |
docker run --rm -v "$PWD":/src -w /src node:22-bookworm-slim \
sh -c "npm ci --no-audit --no-fund && npm run lint && npm test"
- name: Log in to the Forgejo container registry - name: Log in to the Forgejo container registry
# REGISTRY_TOKEN = a Forgejo access token with write:package scope, added # REGISTRY_TOKEN = a Forgejo access token with write:package scope, added

View file

@ -1,11 +0,0 @@
# Lint and tests, run in CI. A build context rather than a bind mount, because
# the CI job runs inside a container of its own — $PWD there means nothing to
# the Docker daemon, so a mounted folder arrives empty.
FROM node:22-bookworm-slim
WORKDIR /src
COPY package.json package-lock.json ./
RUN npm ci --no-audit --no-fund
COPY . .
RUN npm run lint && npm test