diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 595d88e89..5ee7c5d5d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -81,7 +81,7 @@ jobs: run: ./scripts/e2e.sh - name: Upload Playwright HTML report - if: always() + if: ${{ !cancelled() }} uses: actions/upload-artifact@v4 with: name: playwright-report diff --git a/playwright.config.ts b/playwright.config.ts index b3fc9bf3f..348a2d838 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -10,10 +10,11 @@ export default defineConfig({ /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ - retries: process.env.CI ? 2 : 1, + retries: process.env.CI ? 1 : 0, workers: process.env.CI ? "100%" : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ - reporter: [["html", { open: process.env.CI ? "never" : "on-failure" }]], + reporter: process.env.CI ? [["list"], ["html"], ["github"]] : "list", + /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */