Merge pull request #611 from andyzhangx/fix-goveralls

test: fix goveralls
This commit is contained in:
Andy Zhang 2024-02-15 11:04:47 +08:00 committed by GitHub
commit 27a57741c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,12 +24,13 @@ jobs:
go version
export PATH=$PATH:$HOME/.local/bin
make verify
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: 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