Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szczecha committed Jan 21, 2025
1 parent 77b4a47 commit cec4c44
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/actions/flaky-tests-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,38 @@ runs:
shell: bash
run: npm install -g ctrf

- name: Download CTRF reports from GitHub Actions Artifacts
- name: Download CTRF reports
uses: actions/download-artifact@v4
with:
pattern: ctrf-report-*
path: ctrf
path: ctrf-reports

- name: List downloaded files
- name: Move and Rename Files
shell: bash
run: ls -R ./ctrf

# - name: Merge CTRF reports
# shell: bash
# run: npx ctrf merge ctrf/ --output merged-report.json
run: |
mv ctrf-reports/ctrf-report-1/ctrf-report.json ctrf-reports/ctrf-report-1.json
mv ctrf-reports/ctrf-report-2/ctrf-report.json ctrf-reports/ctrf-report-2.json
- name: Merge the blobs into one single HTML Report
run: npx playwright merge-reports --reporter playwright-ctrf-json-reporter ./ctrf
- name: Merge CTRF reports
shell: bash
run: npx ctrf merge ./ctrf-reports

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

- 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
failed-folded-report: true
flaky-report: true
previous-results-report: true
pull-request: true
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
if: always()
Expand Down

0 comments on commit cec4c44

Please sign in to comment.