From 76031e728e0850d08e2f064acedb5253da069028 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Thu, 15 Feb 2024 02:34:16 +0000 Subject: [PATCH] test: fix goveralls --- .github/workflows/linux.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 038d06a8..f4fc2c55 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -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