Skip to content

Commit

Permalink
Merge pull request #751 from andyzhangx/fix-goveralls
Browse files Browse the repository at this point in the history
test: fix goveralls
  • Loading branch information
andyzhangx authored Feb 15, 2024
2 parents bf0e075 + 5887881 commit cadb333
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Build Test
run: |
export PATH=$PATH:$HOME/.local/bin
go test -covermode=count -coverprofile=profile.cov ./pkg/...
go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/...
export DOCKER_CLI_EXPERIMENTAL=enabled && make container
- name: Sanity test
Expand All @@ -39,9 +39,10 @@ jobs:
echo "is running in github actions: $GITHUB_ACTIONS"
make sanity-test
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest

- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
run: goveralls -coverprofile=profile.cov -service=github

0 comments on commit cadb333

Please sign in to comment.