diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 077904c..6e809ab 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -37,4 +37,39 @@ jobs: - name: cargo check (all targets) run: cargo check --all-targets --all-features + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo builds + uses: Swatinem/rust-cache@v2 + + - name: Run tests + run: cargo test --all-features --workspace + + coverage: + name: Code Coverage + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo builds + uses: Swatinem/rust-cache@v2 + + - name: Install cargo-tarpaulin + run: cargo install cargo-tarpaulin + + - name: Generate coverage report + run: cargo tarpaulin --all-features --workspace +