We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5d6833 commit 54cf7b7Copy full SHA for 54cf7b7
1 file changed
.github/workflows/build.yaml
@@ -1,5 +1,8 @@
1
name: Build
2
3
+permissions:
4
+ contents: read
5
+
6
on:
7
push:
8
branches:
@@ -48,18 +51,11 @@ jobs:
48
51
- name: Test
49
52
run: go test ./...
50
53
- name: Coverage
- run: |
- go get github.com/axw/gocov/gocov
- go get github.com/AlekSi/gocov-xml
54
- go install github.com/axw/gocov/gocov
55
- go install github.com/AlekSi/gocov-xml
56
- - run: |
57
- go test -v -coverprofile cover.out ./...
58
- gocov convert cover.out | gocov-xml > coverage.xml
+ run: go test -v -coverprofile=coverage.out ./...
59
- uses: codecov/codecov-action@v4
60
with:
61
token: ${{ secrets.CODECOV_TOKEN }}
62
- files: ./coverage.xml
+ files: ./coverage.out
63
flags: unittests
64
fail_ci_if_error: false
65
verbose: true
0 commit comments