Skip to content

Commit

Permalink
GHA: Improve codecov.io upload usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Feb 7, 2024
1 parent 908d559 commit 941f853
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,21 @@ jobs:
run: ci/build.sh
env: {B2_FLAGS: -a boost.locale.icu=on boost.locale.iconv=off}

- name: Upload coverage
- name: Collect coverage
if: matrix.coverage
run: ci/codecov.sh "upload"
env:
BOOST_CI_CODECOV_IO_UPLOAD: skip

- name: Upload coverage
if: matrix.coverage
uses: codecov/codecov-action@v4
with:
disable_search: true
file: coverage.info
name: Github Actions
token: ${{secrets.CODECOV_TOKEN}}
verbose: true

- name: Run coverity
if: matrix.coverity && github.event_name == 'push' && (github.ref_name == 'develop' || github.ref_name == 'master')
Expand Down Expand Up @@ -423,7 +435,11 @@ jobs:
if: matrix.coverage
uses: codecov/codecov-action@v4
with:
files: __out/cobertura.xml
disable_search: true
file: __out/cobertura.xml
name: Github Actions
token: ${{secrets.CODECOV_TOKEN}}
verbose: true

MSYS2:
defaults:
Expand Down

0 comments on commit 941f853

Please sign in to comment.