Skip to content

Commit e49ba2e

Browse files
committed
ci: generate and upload the unit coverage report
The unit job ran test:unit without coverage, so the agreed "collect a coverage report in CI" was never actually produced. Run npm run coverage (unit suite + v8 report, still ungated) and upload web/coverage as an artifact. https://claude.ai/code/session_01EeGweBeouxSsT6nSaXy8Pk
1 parent b4b864c commit e49ba2e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ jobs:
3131
cache: 'npm'
3232
cache-dependency-path: web/package-lock.json
3333
- run: cd web && npm ci
34-
- run: cd web && npm run test:unit
34+
- run: cd web && npm run coverage # runs the unit suite + prints a coverage report (not gated)
35+
- uses: actions/upload-artifact@v4
36+
if: always()
37+
with:
38+
name: web-coverage
39+
path: web/coverage/
40+
retention-days: 7
3541

3642
e2e:
3743
name: Playwright E2E

0 commit comments

Comments
 (0)