Run E2E tests against production build in CI

In CI, Playwright now starts apps with production commands (react-router-
serve, node --experimental-strip-types) instead of dev servers. This
catches runtime issues like missing exports and import resolution errors
before deploy. Locally, dev servers are still used for fast iteration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-03-25 01:44:12 +01:00 committed by GitHub
parent ae8fc4560a
commit 537d515df9
2 changed files with 30 additions and 12 deletions

View file

@ -175,6 +175,9 @@ jobs:
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: pnpm exec playwright install-deps chromium
- name: Build for production
run: pnpm build
- name: Run E2E tests
run: pnpm test:e2e
env: