Skip to content

Commit

Permalink
ignore main.go in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Mar 21, 2024
1 parent 120f919 commit b968a79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit b968a79

Please sign in to comment.