From bb9b8368a854feadd9790a009b3b7a80c949a3b3 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 10 Oct 2023 13:53:20 +0300 Subject: [PATCH] .github: upgrade coverage uploading action Currently it's failing, but no token is required for public repos: ``` [2023-10-10T10:35:11.917Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')} ``` Signed-off-by: Anna Shaleva --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dbcba1d09..13b8cbf47 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -109,7 +109,7 @@ jobs: run: go test -v ./... -coverprofile=./coverage.txt -covermode=atomic -coverpkg=./pkg...,./cli/... - name: Upload coverage results to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: fail_ci_if_error: true # if something is wrong on uploading codecov results, then this job will fail files: ./coverage.txt