chore(ci): re-enable test cache, add separate check step (#1663)

This commit is contained in:
Ellie Huxtable 2024-02-01 15:08:01 +00:00 committed by GitHub
parent a6f1fe2c10
commit 286f6eb5b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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