Skip to content

Commit

Permalink
Fixing Code Coverage Reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Oct 14, 2024
1 parent 397a6fb commit a0481f1
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 ./...
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/... \
-coverprofile=cover.out ./...
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
Expand Down

0 comments on commit a0481f1

Please sign in to comment.