Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
chore: switch playwright to github reporter (#10212)
Browse files Browse the repository at this point in the history
* Switch playwright to github reporter on CI

* add playwright config to files running the test action
  • Loading branch information
dan-mba authored Jun 8, 2024
1 parent 6510201 commit 80662bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- components/**
- config/**
- tailwind.config.js
- playwright.config.js
- package.json
- next.config.mjs
- models/**
Expand Down Expand Up @@ -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"
2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 80662bc

Please sign in to comment.