Skip to content

Commit

Permalink
Use another coverage tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ypjama committed Oct 16, 2023
1 parent 81c5380 commit 9fe9375
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ jobs:
- name: Install dependencies
run: |
go get .
go install github.com/t-yuki/gocover-cobertura@latest
go install github.com/axw/gocov/gocov@latest
go install github.com/AlekSi/gocov-xml@latest
- name: Build
run: CGO_ENABLED=0 go build -v -o conflictless cmd/conflictless/main.go

- name: Test
run: >-
touch c.out
&& go test -v ./... -coverprofile=c.out
&& go tool cover -func=c.out
&& gocover-cobertura < c.out > coverage.xml
run: gocov test ./... | gocov-xml > coverage.xml

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down

0 comments on commit 9fe9375

Please sign in to comment.