Skip to content

Commit

Permalink
Update for Rust Cache v2
Browse files Browse the repository at this point in the history
This patch updates the Rust cache github actions role to v2
  • Loading branch information
jkilpatr committed Apr 25, 2024
1 parent 721aebc commit 9be5fb4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
working-directory: integration_tests/
workspaces: integration_tests/
- name: Build Integration Tests
run: cd integration_tests && cargo check --all --verbose
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
working-directory: integration_tests/
workspaces: integration_tests/
- name: Run Orchestrator tests
run: cd integration_tests && cargo test --all --release --verbose
rustfmt:
Expand All @@ -41,18 +41,18 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
working-directory: integration_tests/
workspaces: integration_tests/
- name: Check for Clippy lints
run: rustup component add clippy && cd integration_tests && cargo clippy --all --all-targets --all-features -- -D warnings
audit:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
working-directory: integration_tests/
workspaces: integration_tests/
- name: Run Cargo Audit
run: cargo install cargo-audit && cd integration_tests && cargo audit

0 comments on commit 9be5fb4

Please sign in to comment.