Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/four-islands-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Publish only the table with the summary on PRs, now includes a quick link to the job summary. Added ISO formatted date to the report for future flakiness measurement.
20 changes: 17 additions & 3 deletions .github/actions/flaky-tests-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ runs:
pattern: ctrf-report-*
path: ctrf-reports
merge-multiple: true

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

- name: Add execution date to merged report
shell: bash
run: |
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") # ISO format
jq --arg date "$DATE" '.results.summary.extra = { "data": $date }' ctrf-reports/merged-report.json > ctrf-reports/tmp.json && mv ctrf-reports/tmp.json ctrf-reports/merged-report.json

- name: Upload CTRF report
uses: actions/upload-artifact@v4
with:
Expand All @@ -34,9 +40,17 @@ runs:
with:
report-path: ctrf-reports/merged-report.json
summary-report: true
pull-request: true
commit-report: true
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
if: always()

- name: Publish PR Comment
uses: ctrf-io/github-test-reporter@v1
with:
report-path: ctrf-reports/merged-report.json
pull-request-report: true
overwrite-comment: true
failed-report: true
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
if: always()
Expand Down
Loading