From a68b6de727f3dc8cee12e8317d8e283f70bd8dd1 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Wed, 10 Jul 2024 15:05:32 -0700 Subject: [PATCH] run unit tests in CI and upload reports to CodeCov --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b73eb8..2e3064e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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