Skip to content

Commit

Permalink
Merge pull request #10 from go-vela/ci/coveralls
Browse files Browse the repository at this point in the history
Adopt official mattn/goveralls integration
  • Loading branch information
Neal authored Nov 12, 2019
2 parents 91b510a + 28fabac commit 57f0932
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
- name: test
run: |
go test -covermode=count -coverprofile=coverage.out ./...
go test -race -covermode=atomic -coverprofile=coverage.out ./...
- name: coveralls
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# https://github.com/mattn/goveralls#goveralls
$GOPATH/bin/goveralls -service=actions -coverprofile=coverage.out -repotoken=${{ secrets.COVERALLS_TOKEN }}
$(go env GOPATH)/bin/goveralls -service=github -coverprofile=coverage.out

0 comments on commit 57f0932

Please sign in to comment.