diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ac075c8a..ff3e36d1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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)