Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szczecha committed Jan 20, 2025
1 parent 77b4a47 commit 4299d37
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/actions/flaky-tests-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,39 @@ 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: downloaded-ctrf-reports
merge-multiple: true

- name: List downloaded files
- name: List files in the ctrf directory
shell: bash
run: ls -R ./ctrf
run: |
echo "Files in ctrf directory:"
ls -l downloaded-ctrf-reports
# - name: Merge CTRF reports
# shell: bash
# run: npx ctrf merge ctrf/ --output merged-report.json
- name: Merge CTRF reports
shell: bash
run: npx ctrf merge ./downloaded-merged-reports-as-blob --output-dir ./merged-reports

- name: Merge the blobs into one single HTML Report
run: npx playwright merge-reports --reporter playwright-ctrf-json-reporter ./ctrf
- name: List files in the ctrf directory
run: |
echo "Files in ctrf directory:"
ls -l merged-reports
- name: Upload CTRF report
uses: actions/upload-artifact@v4
with:
name: ctrf-report.json
path: ctrf
retention-days: 14
# - name: Upload CTRF report
# uses: actions/upload-artifact@v4
# with:
# 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: merged-reports/*.json
summary-report: true
failed-folded-report: true
flaky-report: true
Expand Down

0 comments on commit 4299d37

Please sign in to comment.