From 4ea0aef9d5023da9f523067d94273ee2d7c28f22 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 2 Feb 2022 11:49:14 +0300 Subject: [PATCH] github: update coverage job See https://github.com/codecov/codecov-action#%EF%B8%8F--deprecration-of-v1 --- .github/workflows/run_tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index b7e6c81a3..5c4f3c83c 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -59,10 +59,10 @@ jobs: run: go test -v ./... -coverprofile=./coverage.txt -covermode=atomic -coverpkg=./pkg...,./cli/... - name: Upload coverage results to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 with: - fail_ci_if_error: false - path_to_write_report: ./coverage.txt + fail_ci_if_error: true # if something is wrong on uploading codecov results, then this job will fail + files: ./coverage.txt verbose: true tests: