Skip to content

Commit

Permalink
fix: remove proto files from coverage calculations (#4351)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikolaj Umanski <[email protected]>
  • Loading branch information
UtheMan and Mikolaj Umanski authored Apr 25, 2024
1 parent ed0c76f commit 80af372
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
run: go test `go list ./... | grep -v e2e` -coverprofile coverage_raw.out -covermode count
- name: Remove mocks.go lines
run: |
sed '/mocks.go/d' coverage_raw.out > coverage.out
sed '/mocks.go/d' coverage_raw.out > coverage-no-mocks.out
- name: Remove proto lines
run: |
sed '/pb.go/d' coverage-no-mocks.out > coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1
- name: Coveralls
Expand Down

0 comments on commit 80af372

Please sign in to comment.