From 060c12512cfae42860d9cea6496c39c2d08fd732 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 9 Feb 2026 23:09:57 -0600 Subject: [PATCH] generate coverage file manually to filter out cmd package --- .github/workflows/test-showbridge.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-showbridge.yaml b/.github/workflows/test-showbridge.yaml index 1a9a17a..2d3648f 100644 --- a/.github/workflows/test-showbridge.yaml +++ b/.github/workflows/test-showbridge.yaml @@ -34,11 +34,14 @@ jobs: run: go mod tidy - name: run tests - run: go test ./... - + run: go test ./... -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: Update coverage report uses: ncruces/go-coverage-report@v0.3.2 with: + coverage-file: coverage.nocmd.out report: true chart: true amend: true