From 79b24ea8e01cf104797f4b21421658bd8bd315fb Mon Sep 17 00:00:00 2001 From: RW Date: Tue, 5 Mar 2024 08:35:09 +0100 Subject: [PATCH] Update test.yml optimize codecov --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b6ced35e7..37c923d44b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,6 +37,7 @@ jobs: run: gotestsum -f testname -- ./... -race -count=1 -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage reports to Codecov + if: ${{ matrix.platform == 'ubuntu-latest' && matrix.go-version == '1.22.x' }} uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }}