diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9217630..7657461 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 }