Skip to content

Commit

Permalink
ci: add unused deps check
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed Sep 12, 2024
1 parent b9117b3 commit d12fabd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,31 @@ jobs:
- name: Run cargo clippy
run: just lint

shear:
name: Check for unused dependencies
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}

- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@main

- name: Install cargo-shear
run: cargo binstall --no-confirm cargo-shear

- name: Run cargo shear
run: cargo shear

coverage:
name: Coverage
runs-on: ubuntu-latest
Expand Down

0 comments on commit d12fabd

Please sign in to comment.