Skip to content

Commit

Permalink
Fail unit-test job if codecov upload fails (#2415)
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <[email protected]>

Signed-off-by: Spencer Schrock <[email protected]>
  • Loading branch information
spencerschrock authored Nov 2, 2022
1 parent 9ae801f commit fba72f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ jobs:
- name: codecov
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # 2.1.0
with:
files: ./e2e-coverage.out
verbose: true

- name: codecov attestor
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # 2.1.0
with:
files: ./attestor/e2e/e2e-coverage.out
fail_ci_if_error: true
files: ./e2e-coverage.out,./attestor/e2e/e2e-coverage.out
verbose: true

- name: find comment
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ jobs:
- name: Upload codecoverage
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # 2.1.0
with:
files: ./unit-coverage.out
verbose: true
- name: Upload codecoverage attestor
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # 2.1.0
with:
files: ./attestor/unit-coverage.out
fail_ci_if_error: true
files: ./unit-coverage.out,./attestor/unit-coverage.out
verbose: true
generate-mocks:
name: generate-mocks
Expand Down

0 comments on commit fba72f8

Please sign in to comment.