Skip to content

Commit

Permalink
Implement coverage reports using codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
kdarkhan committed Jan 5, 2024
1 parent b3d61db commit b20593c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@ jobs:
with:
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Test
run: cargo test
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Run tests with Coverage report enabled
run: cargo llvm-cov test --all-features --workspace --codecov --output-path codecov-report.json

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: codecov-report.json
fail_ci_if_error: true

test-other-books:
strategy:
Expand Down

0 comments on commit b20593c

Please sign in to comment.