Skip to content

Commit

Permalink
Add codecov to rust.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nordzilla committed Jan 24, 2024
1 parent 7bfb964 commit 2cb817e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,24 @@ jobs:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
with:
fail_ci_if_error: true
- name: Run tests
with:
fail_ci_if_error: true
run: cargo test --verbose
- name: Install cargo-llvm-cov
with:
fail_ci_if_error: true
run: cargo install cargo-llvm-cov
- name: Generate code coverage
with:
fail_ci_if_error: true
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json
- name: Upload coverage to Codecov
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json
fail_ci_if_error: true
uses: codecov/codecov-action@v3

0 comments on commit 2cb817e

Please sign in to comment.