Skip to content

Commit

Permalink
Add codecov to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
james-w committed Jul 15, 2024
1 parent c5f5bda commit 85a9c0d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,19 @@ jobs:
- name: Run cargo fmt
run: cargo fmt --check
- name: Run tests
run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info nextest
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json nextest
- name: Show coverage report
run: cargo llvm-cov report
- name: Check link
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: codecov.json
fail_ci_if_error: true
- name: Run cargo check
run: cargo check

0 comments on commit 85a9c0d

Please sign in to comment.