From 5afb3aa43bc7aedde0f8cec4f769c052c8ed65bd Mon Sep 17 00:00:00 2001 From: Levi Date: Wed, 9 Apr 2025 22:19:50 +0800 Subject: [PATCH] ci: fix go 1.24 code coverage (#988) --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 38b11d67..1d6e8cb0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,7 +53,7 @@ jobs: with: go-version: ${{ env.GO_VERSION }} - name: Run Unit tests. - run: go test $(go list ./... | grep -v /cmd/ | grep -v /bind/) -v -covermode=count -coverprofile=coverage.txt + run: go test -v -coverpkg=$(go list ./... | grep -v /cmd/ | grep -v /bind/ | paste -sd "," -) -covermode=count -coverprofile=coverage.txt $(go list ./... | grep -v /cmd/ | grep -v /bind/) - uses: codecov/codecov-action@v4 with: files: ./coverage.txt