From f428cbb21949e8d14695a3acb8983d6e07fae8c2 Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Fri, 1 May 2026 09:40:24 +0100 Subject: [PATCH] fix(ci): reuse existing server + downgrade upload-artifact to v3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .forgejo/workflows/test.yml | 4 ++-- playwright.config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index df1e07f..4be035b 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -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 diff --git a/playwright.config.js b/playwright.config.js index 40d9cb4..49d322d 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -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",