From db9b71410805e384fa071b20a1d545820211f52e Mon Sep 17 00:00:00 2001 From: Zoheb Shaikh <26975142+ZohebShaikh@users.noreply.github.com> Date: Thu, 30 Oct 2025 08:09:01 +0000 Subject: [PATCH] Push to codecov --- .github/workflows/ci.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 192135e..72a0d68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,10 +65,20 @@ jobs: toolchain: stable - uses: Swatinem/rust-cache@v2 - - name: Build Everything - run: cargo build --all-targets - - name: Run tests - run: cargo test --all-targets --verbose + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + + - name: Run tests and generate code coverage + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5 + with: + files: lcov.info + fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + # Ensure that no files (most likely the Cargo.lock file) have changed - name: Unstaged Changes run: git diff --exit-code