From b986356199a396c788acd160100c6f6acff713d7 Mon Sep 17 00:00:00 2001 From: Ariel Harlap <3870784+aharlap@users.noreply.github.com> Date: Thu, 8 Oct 2026 00:05:22 -0400 Subject: [PATCH] ci: annotate Playwright failures and shorten artifact retention --- .github/workflows/ci.yml | 1 + playwright.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efdc3aa..4f7f439 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,3 +30,4 @@ jobs: with: name: playwright-report path: playwright-report/ + retention-days: 3 diff --git a/playwright.config.js b/playwright.config.js index d65ebe5..b131877 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -7,7 +7,7 @@ export default defineConfig({ testDir: './tests/browser', fullyParallel: true, workers: 2, - reporter: [['list'], ['html', { open: 'never' }]], + reporter: [['list'], ['html', { open: 'never' }], ...(process.env.CI ? [['github']] : [])], use: { baseURL: `http://127.0.0.1:${port}`, headless: true, trace: 'retain-on-failure' }, projects: ['chromium', 'webkit', 'firefox'].map(browserName => ({ name: browserName, use: { browserName } })), webServer: { command: 'node scripts/serve-demo.mjs', url: `http://127.0.0.1:${port}/index.html`, reuseExistingServer: false }