Skip to content

Commit

Permalink
run unit tests in CI and upload reports to CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 authored Jul 10, 2024
1 parent 75db3d4 commit a68b6de
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 @@ -22,3 +22,15 @@ jobs:
with:
name: rf24-rs docs
path: target/doc
- run: rustup component add llvm-tools-preview
- name: Install cargo-nextest and cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov,cargo-binstall
- name: Run tests
run: cargo llvm-cov --lcov --output-path lcov.info
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: lcov.info
fail_ci_if_error: true

0 comments on commit a68b6de

Please sign in to comment.