Skip to content

Commit

Permalink
Turning off coverage for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Oct 14, 2024
1 parent fefd2a7 commit 47dd9f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
- name: Test
env:
ENTERPRISE_LICENSE: ${{ secrets.ENTERPRISE_LICENSE }}
run: gotestsum --junitfile report.xml --format testname -- -coverprofile=cover.out -covermode=atomic -coverpkg=github.com/esnet/gdg/cli/...,github.com/esnet/gdg/cmd/...,github.com/esnet/gdg/internal/...,github.com/esnet/gdg/pkg/... ./...
run: |
gotestsum --junitfile report.xml --format testname -- -coverprofile=cover.out -covermode=atomic -coverpkg=github.com/esnet/gdg/cli/...,github.com/esnet/gdg/cmd/...,github.com/esnet/gdg/internal/,github.com/esnet/gdg/internal/{filters,types},github.com/esnet/gdg/pkg/... ./...
cp cover.out cover.tmp && cat cover.tmp | grep -v "mocks" > cover.out
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
Expand Down

0 comments on commit 47dd9f3

Please sign in to comment.