Skip to content

Commit 0a84a68

Browse files
committed
fix: artifact is uploaded with sha so it is unique
1 parent 047ab76 commit 0a84a68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
go mod download
3535
go test -v ./... -coverpkg=./... -short -coverprofile=unit_coverage.out
3636
37+
- name: Archive code coverage results
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: code-coverage-${{github.sha}}
41+
path: unit_coverage.out
42+
3743
code_coverage:
3844
name: "Code coverage report"
3945
if: github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
@@ -46,5 +52,5 @@ jobs:
4652
steps:
4753
- uses: fgrosse/[email protected]
4854
with:
49-
coverage-artifact-name: "code-coverage" # can be omitted if you used this default value
55+
coverage-artifact-name: code-coverage-${{github.sha}} # can be omitted if you used this default value
5056
coverage-file-name: unit_coverage.out

0 commit comments

Comments
 (0)