Run lint, tests and the build in CI, and before a release image is built

This commit is contained in:
Starystars67 committed 2026-10-09 13:26:02 +01:00
1 parent e317ede87f
commit b772af5d39
3 files changed
+61

No files matched your search

+19
View File
@@ -5,7 +5,26 @@ on:
types: [published]
jobs:
# Nothing is built and pushed unless the same checks the CI workflow runs pass first.
checks:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- name: Lint
run: npm run lint:check
- name: Tests
run: npm test
- name: Build
run: npm run build
docker:
needs: checks
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
steps: