Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
Add code coverage
  • Loading branch information
injae committed Dec 26, 2023
1 parent 5b5f462 commit 03896f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: lcov.info
fail_ci_if_error: true

0 comments on commit 03896f7

Please sign in to comment.