Skip to content

Commit

Permalink
ci: add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
g4s8 authored Dec 16, 2023
1 parent a03e026 commit 8c13349
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ jobs:
run: go test -v
- name: Coverage report
run: |
go test -v -covermode=count -coverprofile=coverage.out
go tool cover -func=coverage.out
go test -v -covermode=count -coverprofile=test.cov
go tool cover -func=test.cov | tee coverage.out
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Vet
run: go vet
- name: golangci-lint
Expand Down

0 comments on commit 8c13349

Please sign in to comment.