Skip to content

Commit

Permalink
push coverage report only if merged
Browse files Browse the repository at this point in the history
  • Loading branch information
bnkamalesh committed Oct 5, 2024
1 parent 18a3ded commit 566b3ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ jobs:
- name: Build
run: go build -v ./...

- name: Run Unit tests
- name: Tests
run: |
go install github.com/mattn/goveralls@latest
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: covprofile
if: github.event.pull_request.merged

0 comments on commit 566b3ac

Please sign in to comment.