diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ba6a3377..4559770e 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 -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)