Skip to content

Commit

Permalink
chore(ci): re-enable test cache, add separate check step
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie committed Feb 1, 2024
1 parent a6f1fe2 commit 48ecec7
Showing 1 changed file with 41 additions and 7 deletions.
48 changes: 41 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ 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
Expand All @@ -78,6 +78,40 @@ jobs:
- name: Run cargo check (client only)
run: cargo check --no-default-features --features client --workspace

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

- name: Run cargo check (no features)
run: cargo check --no-default-features --workspace

- name: Run cargo check (sync)
run: cargo check --no-default-features --features sync --workspace

- name: Run cargo check (server)
run: cargo check --no-default-features --features server --workspace

- name: Run cargo check (client only)
run: cargo check --no-default-features --features client --workspace

integration-test:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 48ecec7

Please sign in to comment.