Skip to content

Commit

Permalink
Merge pull request #1246 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 ba54fc1 + 2681d4e commit 5f8f01c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install blobfuse
go test -covermode=count -coverprofile=profile.cov ./pkg/...
go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/...
- name: Run build test
run: |
Expand All @@ -42,9 +42,10 @@ jobs:
export PATH=$PATH:$HOME/.local/bin
make blobfuse-proxy
- name: Get code coverage
- 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
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=profile.cov -service=github

0 comments on commit 5f8f01c

Please sign in to comment.