ci: add @vitest/coverage-v8 to workspace packages; set REDIS_URL on build
CI / Architecture Guardrails (push) Failing after 14s
CI / Unit Tests (push) Failing after 4m33s
CI / Assistant Split Regression (push) Successful in 7m17s
CI / Build (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
CI / Typecheck (push) Has started running
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Lint (push) Has started running

CI unit-test runs vitest run --coverage in each workspace package, but only
apps/web declared the coverage-v8 dep. In pnpm workspaces deps aren't
hoisted across packages, so engine/staffing/api/application/shared need it
directly.

The build job also needs REDIS_URL because collecting page data for
/api/perf imports a module that throws if REDIS_URL is missing under
NODE_ENV=production. A placeholder value satisfies the check (no actual
Redis connection is made at build time).
This commit is contained in:
2026-04-12 18:38:21 +02:00
parent 4171ee99a1
commit 64ca79f3a6
7 changed files with 26 additions and 5 deletions
+2 -1
View File
@@ -17,6 +17,7 @@
"devDependencies": {
"@capakraken/tsconfig": "workspace:*",
"typescript": "^5.6.3",
"vitest": "^2.1.8"
"vitest": "^2.1.8",
"@vitest/coverage-v8": "^2.1.9"
}
}