Skip to content

Commit

Permalink
add merge ctrf reports
Browse files Browse the repository at this point in the history
  • Loading branch information
szczecha committed Jan 17, 2025
1 parent cbd71b5 commit 2ab4064
Show file tree
Hide file tree
Showing 4 changed files with 697 additions and 17 deletions.
14 changes: 6 additions & 8 deletions .github/actions/merge-pw-reports/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,17 @@ runs:
path: playwright-report
retention-days: 14

- name: Merge ctfr reports
shell: bash
run: npx ctrf merge ./ctrf

- name: Publish Test Report
uses: ctrf-io/github-test-reporter@v1
with:
report-path: 'ctrf/*.json'
report-path: .ctrf/ctrf-report.json
summary-report: true
previous-results-report: true
failed-report: true
flaky-report: true
if: always()

- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: ctrf-report
path: ctrf-reports/ctrf-report.json
retention-days: 14

5 changes: 3 additions & 2 deletions .github/actions/run-pw-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ runs:
PROJECT_PARAMS+="--project=${PROJECT} "
done
echo "reportName=all-blob-reports-${SHARD_NUMBER%%/*}" >> $GITHUB_ENV
echo "ctrfReport=ctrf-report-${SHARD_NUMBER%%/*}" >> $GITHUB_ENV
npx playwright test --grep @e2e $PROJECT_PARAMS --shard "$SHARD_NUMBER"
- name: Upload blob report to GitHub Actions Artifacts
Expand All @@ -102,6 +103,6 @@ runs:
- name: Upload CTRF report as artifact
uses: actions/upload-artifact@v4
with:
name: ctrf-report
path: ctrf/ctrf-report.json
name: ${{ env.ctrfReport }}
path: ctrf
retention-days: 1
Loading

0 comments on commit 2ab4064

Please sign in to comment.