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 eb3923d commit 8f0f7be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/flaky-tests-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ runs:
with:
node-version: 20

- name: Install CTRF package
- name: Install CTRF package globally
shell: bash
run: npm install -g ctrf

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

- name: Merge CTRF reports
shell: bash
run: ctrf merge ./ctrf --output ./ctrf/merged-report.json
run: npx ctrf merge ./ctrf --output merged-report.json

- name: Upload CTRF report
uses: actions/upload-artifact@v4
Expand All @@ -37,4 +37,4 @@ runs:
previous-results-report: true
failed-report: true
flaky-report: true
if: always()
if: always()
9 changes: 9 additions & 0 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-reports-${SHARD_NUMBER%%/*}" >> $GITHUB_ENV
npx playwright test --grep @e2e $PROJECT_PARAMS --shard "$SHARD_NUMBER"
- name: Upload blob report to GitHub Actions Artifacts
Expand All @@ -97,4 +98,12 @@ runs:
with:
name: ${{ env.reportName }}
path: blob-report
retention-days: 1

- name: Upload ctrf report to GitHub Actions Artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ env.ctrfReport }}
path: ctrf
retention-days: 1

0 comments on commit 8f0f7be

Please sign in to comment.