Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-machete: clean-up and integration into the check workflow. #366

Closed
wants to merge 12 commits into from
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install Machete
uses: bnjbvr/cargo-machete@main

- name: Cache
uses: actions/cache@v3
with:
Expand All @@ -28,6 +31,9 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run cargo machete #checks for unused dependencies
run: cargo machete

- name: Run cargo check
run: cargo check --tests --workspace --benches
Expand Down
Loading
Loading