Merge pull request 'ci: gate on what we ship, and run the audit after the code checks' (#20) from chore/ci-audit-gate into develop
CI / build (push) Successful in 34s

Reviewed-on: #20
This commit was merged in pull request #20.
This commit is contained in:
chrnx committed 2026-08-08 22:41:34 +00:00
commit 324ddf0d61
1 file changed
+10 -3
+10 -3
View File
@@ -1,9 +1,9 @@
name: CI name: CI
on: on:
push: push:
branches: [develop, main] branches: [develop, main, contrib]
pull_request: pull_request:
branches: [develop, main] branches: [develop, main, contrib]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -13,16 +13,23 @@ jobs:
with: with:
node-version: '18' node-version: '18'
- run: npm ci - run: npm ci
- run: npm audit
- run: npm run lint - run: npm run lint
- run: npm run format:check - run: npm run format:check
- run: npm run complexity:check - run: npm run complexity:check
- run: npm run typecheck - run: npm run typecheck
- run: npm test - run: npm test
- run: npm run build - run: npm run build
# Supply chain, deliberately after the code gates: an advisory published by a third party
# must never decide whether a contributor gets to see their own lint and typecheck output.
# Only what we ship blocks — with `reflect-metadata` as the sole runtime dependency, a
# production advisory is rare and genuinely reaches users. Build tooling only reports.
- run: npm audit --omit=dev
- run: npm audit
continue-on-error: true
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: '22.12' node-version: '22.12'
- run: npm ci --prefix website - run: npm ci --prefix website
- run: npm audit --prefix website - run: npm audit --prefix website
continue-on-error: true
- run: npm run docs:build - run: npm run docs:build