diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 899db84..cca5700 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@stable - name: Install the Cargo Bake launcher - run: cargo install socketry-cargo-bake --version 0.17.0 --locked + run: cargo install socketry-cargo-bake --locked - name: Run workspace tests run: cargo test --workspace --locked - name: Exercise task registration @@ -33,11 +33,18 @@ jobs: quality: runs-on: ubuntu-latest - timeout-minutes: 10 + timeout-minutes: 20 steps: - uses: actions/checkout@v7 - - uses: dtolnay/rust-toolchain@stable + - uses: actions-rust-lang/setup-rust-toolchain@v2 with: - components: rustfmt, clippy + components: clippy, llvm-tools-preview, rustfmt + cache-shared-key: coverage-cargo-install-v1 + - name: Install Bake launcher + run: cargo install socketry-cargo-bake --locked + - name: Install coverage tool + run: cargo install cargo-llvm-cov --locked - run: cargo fmt --all --check - run: cargo clippy --workspace --all-targets --locked -- -D warnings + - name: Run tests and require complete line coverage + run: cargo bake --locked test:coverage --all-targets true