ci: fix Frontend Tests — use build:docker instead of build

The Vite production build step was running `npm run build` which
includes `tsc -b` in its chain. The repo has ~100 pre-existing strict
TS errors (TS6133 unused vars, TS1294 erasableSyntaxOnly, JSX
intrinsic-element types for custom elements) gated by the separate
`tsc` step above with continue-on-error.

`build:docker` is the script the Dockerfile actually uses to ship
prod — it runs generate:component-svgs + generate:sitemap +
vite build + prerender-seo. It skips `tsc -b` for the same reason
the workflow's `tsc` step is continue-on-error.

Verified locally: 285 SEO pages prerendered, vite build green.
This commit is contained in:
davidmonterocrespo24 2026-05-15 23:42:52 +02:00
parent 07552b5d9e
commit e8557bd25f
1 changed files with 9 additions and 1 deletions

View File

@ -71,8 +71,16 @@ jobs:
# Production build smoke — catches Vite/Rollup-only failures that
# vitest doesn't see (chunk wiring, dynamic imports, manualChunks
# config, asset resolution).
#
# Use `build:docker` (not `build`): the latter runs `tsc -b` first
# which has pre-existing strict errors (TS6133 unused, TS1294
# erasableSyntaxOnly, JSX intrinsic-element types from custom
# elements). Those are tracked separately and gated by the `tsc`
# step above with continue-on-error. The Dockerfile in production
# uses `build:docker` too — this step now matches what actually
# ships.
- name: Vite production build
run: cd frontend && npm run build
run: cd frontend && npm run build:docker
# Upload coverage as an artifact for download / inspection. Skip
# codecov for now (no org account). Run only on Node 22 to keep the