Skip to content

Commit 791a6bd

Browse files
committed
ci: upload artifact (main.breakdown)
1 parent 661e467 commit 791a6bd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
profile: ubuntu-latest-profile,macos-latest-profile,windows-latest-profile
6161
git-branch: badges
6262
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
63+
breakdown-file-name: ${{ github.ref_name == 'main' && 'main.breakdown' || '' }}
6364

6465
# Post coverage report as comment
6566
- name: find pull request ID
@@ -98,4 +99,12 @@ jobs:
9899
- name: "finally check coverage"
99100
if: steps.coverage.outcome == 'failure'
100101
shell: bash
101-
run: echo "coverage check failed" && exit 1
102+
run: echo "coverage check failed" && exit 1
103+
104+
- name: upload artifact (main.breakdown)
105+
uses: actions/upload-artifact@v4
106+
if: github.ref_name == 'main'
107+
with:
108+
name: main.breakdown
109+
path: main.breakdown
110+
if-no-files-found: error

0 commit comments

Comments
 (0)