From 286f6eb5b36a6def8d390992641fde37613ebd58 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Thu, 1 Feb 2024 15:08:01 +0000 Subject: chore(ci): re-enable test cache, add separate check step (#1663) --- .github/workflows/rust.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bac5f02f..d60db42a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -52,17 +52,36 @@ jobs: with: toolchain: stable -# - uses: actions/cache@v3 -# with: -# path: | -# ~/.cargo/registry -# ~/.cargo/git -# target -# key: ${ runner.os }-cargo-debug-${{ hashFiles('**/Cargo.lock') }} + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${ runner.os }-cargo-debug-${{ hashFiles('**/Cargo.lock') }} - name: Run cargo test run: cargo test --lib --bins + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${ runner.os }-cargo-debug-${{ hashFiles('**/Cargo.lock') }} + - name: Run cargo check (all features) run: cargo check --all-features --workspace -- cgit v1.3.1