diff --git a/.github/workflows/test-showbridge.yaml b/.github/workflows/test-showbridge.yaml index ffd7b48..de28a10 100644 --- a/.github/workflows/test-showbridge.yaml +++ b/.github/workflows/test-showbridge.yaml @@ -34,10 +34,13 @@ jobs: run: go mod tidy - name: run tests - run: go test -coverprofile coverage.out ./... + run: go test ./... -count=1 -coverpkg "github.com/jwetzell/showbridge-go/..." -coverprofile coverage.out + - name: clean up coverage report + run: cat coverage.out | grep -v "github.com/jwetzell/showbridge-go/cmd" > coverage.nocmd.out + - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v7 with: token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.out + files: coverage.nocmd.out