Compare commits
No commits in common. "d6fe7ec3ffd4a070d15cce02d033b7d8ad0b887b" and "a1977e3efd6242b3fcc39e231e8a3142dd5d6eea" have entirely different histories.
d6fe7ec3ff
...
a1977e3efd
3 changed files with 5 additions and 15 deletions
|
|
@ -12,7 +12,6 @@ data
|
|||
.DS_Store
|
||||
npm-debug.log*
|
||||
Dockerfile
|
||||
Dockerfile.check
|
||||
.dockerignore
|
||||
docker-compose.yml
|
||||
extracted
|
||||
|
|
|
|||
|
|
@ -17,9 +17,11 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Lint and test
|
||||
# Built, not mounted: this job runs in a container, so a host bind mount
|
||||
# of $PWD arrives empty. A failure here stops the image being built.
|
||||
run: docker build -f Dockerfile.check -t printhive-check .
|
||||
# In the runner's own Docker, so this needs no extra actions. A failure
|
||||
# here stops the image being built, rather than deploying a broken one.
|
||||
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
|
||||
# REGISTRY_TOKEN = a Forgejo access token with write:package scope, added
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in a new issue