From 9f9f91dad870b9527647bd73d0197112ce36ed78 Mon Sep 17 00:00:00 2001 From: Daniele Irsuti Date: Tue, 30 Jan 2024 17:45:41 +0100 Subject: [PATCH] Add Playwright test reporter and artifact upload --- .github/workflows/playwright.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index d1ab1078..20e8f64b 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -43,10 +43,15 @@ jobs: run: pnpm run build - name: Run Playwright tests - run: pnpm exec playwright test + run: pnpm exec playwright test --reporter json + + - uses: daun/playwright-report-summary@v3 + with: + report-file: results.json + - uses: actions/upload-artifact@v3 if: always() with: name: playwright-report path: playwright-report/ - retention-days: 30 \ No newline at end of file + retention-days: 30