From d1667e0844c4a1e494046ec00e7f187278f9c994 Mon Sep 17 00:00:00 2001 From: AliBakerSartawi Date: Mon, 15 Apr 2024 08:41:08 +0300 Subject: [PATCH] add coverage ci --- .github/workflows/coverage.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..4d7445f --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,34 @@ +name: Test + +on: + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + components: rustfmt, clippy + + - name: Install Tarpaulin + run: cargo install cargo-tarpaulin + + - name: Run Tarpaulin and Check Coverage + run: | + coverage=$(cargo tarpaulin --out Xml | grep '