From 6e4c65a81cc6278ab68f992d7cce893195092ab9 Mon Sep 17 00:00:00 2001 From: mazipan Date: Mon, 9 Dec 2024 12:26:13 +0700 Subject: [PATCH] CI: Update yaml --- .github/workflows/e2e.yml | 1 + playwright.config.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5fba89b..29e5d04 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -36,6 +36,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 + if: ${{ !cancelled() }} with: name: playwright-report path: playwright-report/ diff --git a/playwright.config.ts b/playwright.config.ts index a3cc977..5fc02bf 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -30,9 +30,10 @@ export default defineConfig({ colorScheme: 'dark', /* Base URL to use in actions like `await page.goto('/')`. */ baseURL: 'http://localhost:3000', - /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', + /* Only keep screenshot when failure */ + screenshot: 'only-on-failure', }, /* Configure projects for major browsers */