Skip to content

Commit 0d32f25

Browse files
authored
ci: add diff report (#128)
1 parent 791a6bd commit 0d32f25

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ jobs:
5151
with:
5252
name: windows-latest-profile
5353

54+
- name: download artifact (main.breakdown)
55+
id: download-main-breakdown
56+
uses: dawidd6/action-download-artifact@v6
57+
with:
58+
branch: main
59+
workflow_conclusion: success
60+
name: main.breakdown
61+
if_no_artifact_found: fail
62+
5463
- name: check test coverage
5564
id: coverage
5665
uses: vladopajic/go-test-coverage@v2
@@ -61,6 +70,7 @@ jobs:
6170
git-branch: badges
6271
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
6372
breakdown-file-name: ${{ github.ref_name == 'main' && 'main.breakdown' || '' }}
73+
diff-base-breakdown-file-name: ${{ steps.download-main-breakdown.outputs.found_artifact && 'main.breakdown' || '' }}
6474

6575
# Post coverage report as comment
6676
- name: find pull request ID

0 commit comments

Comments
 (0)