Skip to content

Commit

Permalink
add codecov token and fail on error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Apr 16, 2024
1 parent 551a15c commit d312e47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
- name: Report coverage
if: ${{ matrix.go == '1.21' }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./cover.out
flags: unittests
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ jobs:
run: make test coverage-report
- name: Report coverage
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./cover.out
flags: unittests
fail_ci_if_error: false
fail_ci_if_error: true
verbose: true

0 comments on commit d312e47

Please sign in to comment.