Skip to content

Commit

Permalink
remove generated mocks from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
johningve committed Feb 18, 2021
1 parent fe7fc65 commit 1fcaa2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Generate coverage report
run: go test -v -timeout 60s -coverpkg=./... -coverprofile=coverage.tmp.txt -covermode=atomic ./...
- name: Remove generated code from coverage report
run: grep -v ".pb.go" coverage.tmp.txt > coverage.txt
run: grep -v -E ".pb.go|_mock.go" coverage.tmp.txt > coverage.txt
- name: Upload coverage report
uses: codecov/codecov-action@v1
with:
Expand Down

0 comments on commit 1fcaa2b

Please sign in to comment.