Skip to content

Commit 205031a

Browse files
authored
Merge pull request #145 from tianon/coverage.html
Upload `coverage.html` (and `coverage.txt`) directly
2 parents 469b379 + 1e4bd4e commit 205031a

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,31 @@ jobs:
4646
4747
- run: .test/test.sh --deploy
4848

49-
- uses: actions/upload-artifact@v4
49+
- uses: actions/upload-artifact@v7
5050
with:
51-
name: coverage
51+
name: coverage-bundle
5252
path: |
5353
.test/.coverage/coverage.*
5454
.test/.coverage/GOCOVERDIR/
5555
include-hidden-files: true
5656
if-no-files-found: error
5757

58+
- uses: actions/upload-artifact@v7
59+
with:
60+
name: coverage.html
61+
archive: false
62+
path: .test/.coverage/coverage.html
63+
include-hidden-files: true
64+
if-no-files-found: error
65+
66+
- uses: actions/upload-artifact@v7
67+
with:
68+
name: coverage.txt
69+
archive: false
70+
path: .test/.coverage/coverage.txt
71+
include-hidden-files: true
72+
if-no-files-found: error
73+
5874
- name: gofmt
5975
run: find -name '*.go' -type f -exec ./.go-env.sh gofmt -l -s -w '{}' +
6076

0 commit comments

Comments
 (0)