Skip to content

Commit

Permalink
Add playwright report github comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Sep 18, 2024
1 parent 191a62d commit 296266d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ jobs:
- name: Run integration tests
run: pnpm integration

- uses: actions/upload-artifact@v3
- uses: daun/playwright-report-summary@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
report-file: result.json
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: process.env.CI ? 'github' : 'list',
reporter: process.env.CI ? [['json', { outputFile: 'result.json' }]] : 'list',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
extraHTTPHeaders: {
Expand Down

0 comments on commit 296266d

Please sign in to comment.