From 80662bcc1aaccf2ae5ef2e5361d277ea8c28fb3c Mon Sep 17 00:00:00 2001 From: Dan <35927536+dan-mba@users.noreply.github.com> Date: Sat, 8 Jun 2024 06:31:25 -0400 Subject: [PATCH] chore: switch playwright to github reporter (#10212) * Switch playwright to github reporter on CI * add playwright config to files running the test action --- .github/workflows/build.yml | 4 +--- playwright.config.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e31eab5ea5..a1860717415 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,7 @@ on: - components/** - config/** - tailwind.config.js + - playwright.config.js - package.json - next.config.mjs - models/** @@ -58,6 +59,3 @@ jobs: run: npx playwright install chromium - name: run tests run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} - - uses: test-summary/action@v2.0 - with: - paths: "results.xml" diff --git a/playwright.config.js b/playwright.config.js index 70eb698ecca..e46e20fcdb0 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -39,7 +39,7 @@ const config = { workers: 1, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: process.env.CI - ? [["junit", { outputFile: "results.xml" }], ["list"]] + ? "github" : "html", /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: {