From f110c7cef781947cd80d77def2c81740971e7cbc Mon Sep 17 00:00:00 2001 From: rdleal Date: Fri, 26 Apr 2024 21:41:13 -0300 Subject: [PATCH] fix: update CodeCov to v4. CodeCov upload has been consistently failing when trying to upload coverage for a PR from a fork. This change updates CodeCov to v4 and sets the `CODECOV_TOKEN` env var in an attempt to fix this issue. See https://github.com/codecov/codecov-action/issues/598 --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f12d773..521373d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,8 +23,9 @@ jobs: - name: Test run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... - name: Report coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} file: coverage.txt fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}