Skip to content

Commit

Permalink
Upload HTML report in Playwright workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jantoun-scottlogic committed Jun 25, 2024
1 parent 0662098 commit e071c06
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/actions/run-playwright/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ runs:
run: npm run playwright-install
shell: bash
- name: Run Playwright tests
run: npm run playwright-test -- --tracing=retain-on-failure
run: npm run playwright-test -- --tracing=retain-on-failure --html=reports/report.html
shell: bash
- uses: actions/upload-artifact@v4
- name: Upload traces
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-traces
path: playwright/tests/test-results/
- name: Upload HTML report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-html-report
path: playwright/tests/reports

0 comments on commit e071c06

Please sign in to comment.