Skip to content

Commit ebde816

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
test: fix goveralls
1 parent 44cc460 commit ebde816

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/linux.yaml

+7-6
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)