fix(ci): reuse existing server + downgrade upload-artifact to v3
Some checks failed
Test / playwright (push) Failing after 13m11s
Test / vitest (push) Successful in 11m11s
Test / visual (push) Failing after 12m7s
Test / Notify on failure (push) Successful in 2s

Playwright's webServer config tried to spin up its own server in CI
('reuseExistingServer: !process.env.CI' = false), but the workflow
already started one manually — port 3000 was busy and Playwright
errored before any test ran. Set reuseExistingServer: true always:
Playwright reuses whatever's responsive and only runs the command
when nothing is.

Forgejo doesn't support actions/upload-artifact@v4 (GHES-not-supported
error). Downgrade to @v3.
This commit is contained in:
Jennie Robinson Faber 2026-05-01 09:40:24 +01:00
parent f05c1f6d40
commit f428cbb219
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ jobs:
if: failure()
run: cat /tmp/server.log || true
- run: npx playwright test --ignore-snapshots
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
if: failure()
with:
name: playwright-report
@ -132,7 +132,7 @@ jobs:
if: failure()
run: cat /tmp/server.log || true
- run: npx playwright test e2e/visual/
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
if: failure()
with:
name: visual-diffs

View file

@ -27,7 +27,7 @@ export default defineConfig({
webServer: {
command: `PORT=${PORT} npm run build && PORT=${PORT} NODE_ENV=development npm run preview`,
url: BASE_URL,
reuseExistingServer: !process.env.CI,
reuseExistingServer: true,
env: {
NUXT_PUBLIC_COMING_SOON: "false",
NODE_ENV: "development",