diff --git a/.github/actions/flaky-tests-report/action.yml b/.github/actions/flaky-tests-report/action.yml index cb164069619..b89d0d56e70 100644 --- a/.github/actions/flaky-tests-report/action.yml +++ b/.github/actions/flaky-tests-report/action.yml @@ -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