From b10cc2d32484705e704ae2317adc28c599098ce6 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Fri, 10 Dec 2021 14:38:26 +0100 Subject: [PATCH] Revert "include cross-package coverage in codecov" --- templates/.github/workflows/go-test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/.github/workflows/go-test.yml b/templates/.github/workflows/go-test.yml index 01294752..40419921 100644 --- a/templates/.github/workflows/go-test.yml +++ b/templates/.github/workflows/go-test.yml @@ -37,10 +37,7 @@ jobs: - name: Run tests uses: protocol/multiple-go-modules@v1.2 with: - # Use -coverpkg=./..., so that we include cross-package coverage. - # If package ./A imports ./B, and ./A's tests also cover ./B, - # this means ./B's coverage will be significantly higher than 0%. - run: go test -v -coverprofile=module-coverage.txt -coverpkg=./... ./... + run: go test -v -coverprofile module-coverage.txt ./... - name: Run tests (32 bit) if: ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX. uses: protocol/multiple-go-modules@v1.2