Skip to content

Commit 5f8f01c

Browse files
authored
Merge pull request #1246 from andyzhangx/fix-goveralls
test: fix goveralls
2 parents ba54fc1 + 2681d4e commit 5f8f01c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/linux.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
sudo dpkg -i packages-microsoft-prod.deb
2626
sudo apt-get update
2727
sudo apt-get install blobfuse
28-
go test -covermode=count -coverprofile=profile.cov ./pkg/...
28+
go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/...
2929
3030
- name: Run build test
3131
run: |
@@ -42,9 +42,10 @@ jobs:
4242
export PATH=$PATH:$HOME/.local/bin
4343
make blobfuse-proxy
4444
45-
- name: Get code coverage
45+
- name: Install goveralls
46+
run: go install github.com/mattn/goveralls@latest
47+
48+
- name: Send coverage
4649
env:
47-
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
run: |
49-
GO111MODULE=off go get github.com/mattn/goveralls
50-
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
50+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
run: goveralls -coverprofile=profile.cov -service=github

0 commit comments

Comments
 (0)