You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): build before Playwright preview server starts
Playwright plugin setup runs webServer before globalSetup, so CI
vite preview returned 404 without dist/ and timed out. Add an
explicit build step in the workflow and remove the late globalSetup.
## 2026-06-14 — CI fix: Playwright webServer build order
8
+
9
+
### Fixed
10
+
- GitHub Actions `build-test` — Playwright starts `webServer` before `globalSetup`, so `vite preview` served 404 without `dist/` and timed out after 120s
11
+
-`playwright.config.ts` — build before preview locally; CI relies on workflow `npm run build` step; timeout raised to 300s in CI
12
+
-`.github/workflows/ci.yml` — explicit `npm run build` before tests
13
+
14
+
### Removed
15
+
-`tests/global-setup.ts` — redundant; ran too late to help webServer startup
16
+
17
+
### Verification
18
+
```bash
19
+
CI=1 npm run build && CI=1 npm run test# 519 passed
0 commit comments