diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 169c1a0..f1fff83 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -21,7 +21,9 @@ jobs: - name: Install Dependencies run: sudo apt-get update && sudo apt-get -u install libpcsclite-dev - name: Calculate coverage - run: go test -v -covermode=count -coverprofile=coverage.out -coverpkg=./... ./... + run: | + go test -v -covermode=count -coverprofile=coverage.out.raw -coverpkg=./... ./... + grep -v mock_ coverage.out.raw > coverage.out - name: Convert coverage to lcov uses: jandelgado/gcov2lcov-action@v1.0.8 - name: Coveralls