github: update coverage job

See https://github.com/codecov/codecov-action#%EF%B8%8F--deprecration-of-v1
This commit is contained in:
Anna Shaleva 2022-02-02 11:49:14 +03:00
parent 47465b8db9
commit 4ea0aef9d5

View file

@ -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: