Skip to content

Commit 54cf7b7

Browse files
committed
remove the custom coverage tools and use proper toolchain.
1 parent a5d6833 commit 54cf7b7

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/build.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:
@@ -48,18 +51,11 @@ jobs:
4851
- name: Test
4952
run: go test ./...
5053
- name: Coverage
51-
run: |
52-
go get github.com/axw/gocov/gocov
53-
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
54+
run: go test -v -coverprofile=coverage.out ./...
5955
- uses: codecov/codecov-action@v4
6056
with:
6157
token: ${{ secrets.CODECOV_TOKEN }}
62-
files: ./coverage.xml
58+
files: ./coverage.out
6359
flags: unittests
6460
fail_ci_if_error: false
6561
verbose: true

0 commit comments

Comments
 (0)