diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6f5a484..71e3ce4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -45,7 +45,9 @@ jobs: only-new-issues: true skip-cache: true - name: Run Go unit tests - run: go test -v -coverpkg=./... -race -timeout 3m -coverprofile=coverage.out ./... + run: | + go test -v -coverpkg=./... -race -timeout 3m -coverprofile=coverage.out.tmp ./... + cat coverage.out.tmp | grep -v "main.go" > coverage.out - name: Go coverage format if: ${{ github.event_name == 'pull_request' }} run: |