Skip to content

Commit

Permalink
don't check coverage for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Feb 11, 2022
1 parent 08b2160 commit 431a970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
go get -v
go test -timeout=60s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "_mock.go" > $GITHUB_WORKSPACE/profile.cov
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "_mock.go" | grep -v "mocks"> $GITHUB_WORKSPACE/profile.cov
go build -race
env:
GO111MODULE: "on"
Expand Down

0 comments on commit 431a970

Please sign in to comment.