From d4b690202eccf2adbaa33c7ca31e7167fa3d4157 Mon Sep 17 00:00:00 2001 From: Ahmed <> Date: Mon, 16 Sep 2024 01:14:02 +0200 Subject: [PATCH] Coverage Support Signed-off-by: Ahmed <> --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f39666..5729f83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,3 +75,26 @@ jobs: with: command: clippy args: --all-targets -- -D warnings + coverage: + name: coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Checkout Test Binaries + uses: actions/checkout@v4 + with: + repository: Rair-Project/testing_binaries + path: testing_binaries + - name: Install Tarpaulin + run: cargo install cargo-tarpaulin + - name: Run Tarpaulin + run: cargo tarpaulin --ignore-tests -l --all --out Xml + - name: Upload coverage reports to Codecov with GitHub Action + uses: codecov/codecov-action@v4.2.0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 89fb858..e09ee5f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ target Cargo.lock target tarpaulin-report.html +*.xml testing_binaries/