diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 27792ae..fa7e154 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -31,3 +31,18 @@ jobs: run: rustup update stable - name: Run tests run: cargo test --release + coverage: + name: cargo-tarpaulin + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Get latest version of stable Rust + run: rustup update stable + - name: Install cargo-tarpaulin + uses: taiki-e/install-action@cargo-tarpaulin + - name: Check code coverage with cargo-tarpaulin + run: cargo-tarpaulin --workspace --all-features --out xml + - name: Upload to codecov.io + uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: true