diff --git a/Makefile b/Makefile index 77be727..3075548 100644 --- a/Makefile +++ b/Makefile @@ -50,9 +50,16 @@ endif ci: lint build unit mutation frontend verify ## frontend: install deps and run the Nx lint/test/build for the portals (pnpm + Node required) +# Tests run in their own phase, ahead of the build. The @angular/build:unit-test +# (Vitest) runner spawns a worker with a hard-coded 60s/90s startup timeout that is +# not configurable. When the ~5min production build shares the run-many pool, it +# starves that worker of CPU on constrained CI runners and Vitest fails with +# "Timeout waiting for worker to respond". Splitting the phases keeps tests off the +# heavy build's back so the worker starts well inside its window. frontend: pnpm install --frozen-lockfile - pnpm nx run-many -t lint test build + pnpm nx run-many -t lint test + pnpm nx run-many -t build ## lint: verify formatting (no changes) lint: