Skip to content

Commit

Permalink
ci: Upload coverage to codecov.io
Browse files Browse the repository at this point in the history
  • Loading branch information
robo9k committed Sep 26, 2023
1 parent 3621c44 commit d7175d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,15 @@ jobs:
cargo +${{ steps.toolchain.outputs.name }} llvm-cov clean --workspace
cargo +${{ steps.toolchain.outputs.name }} test --all-targets --all-features --verbose
cargo +${{ steps.toolchain.outputs.name }} llvm-cov report --codecov --output-path codecov.json
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: codecov.json
path: codecov.json

- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
files: codecov.json
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit d7175d3

Please sign in to comment.