From b20593cd46b412279f63b1cee9f74014bf29ce3a Mon Sep 17 00:00:00 2001 From: Darkhan Kubigenov Date: Fri, 5 Jan 2024 15:37:16 +0000 Subject: [PATCH] Implement coverage reports using codecov --- .github/workflows/test.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82ac3e2..70a677f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,8 +22,17 @@ jobs: with: save-if: ${{ github.ref == 'refs/heads/main' }} - - name: Test - run: cargo test + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + + - name: Run tests with Coverage report enabled + run: cargo llvm-cov test --all-features --workspace --codecov --output-path codecov-report.json + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + files: codecov-report.json + fail_ci_if_error: true test-other-books: strategy: