From a0481f12d6617ea9812261e37b53c41b4f3bf165 Mon Sep 17 00:00:00 2001 From: Samir Faci Date: Mon, 14 Oct 2024 09:37:35 -0400 Subject: [PATCH] Fixing Code Coverage Reporting --- .github/workflows/go.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)