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:
parent
ae8fc4560a
commit
537d515df9
2 changed files with 30 additions and 12 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue