Skip to content

Commit d12fabd

Browse files
committed
ci: add unused deps check
1 parent b9117b3 commit d12fabd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/rust-ci.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,31 @@ jobs:
122122
- name: Run cargo clippy
123123
run: just lint
124124

125+
shear:
126+
name: Check for unused dependencies
127+
runs-on: ubuntu-latest
128+
strategy:
129+
matrix:
130+
rust:
131+
- stable
132+
steps:
133+
- name: Checkout sources
134+
uses: actions/checkout@v4
135+
136+
- name: Install toolchain
137+
uses: dtolnay/rust-toolchain@stable
138+
with:
139+
toolchain: ${{ matrix.rust }}
140+
141+
- name: Install cargo-binstall
142+
uses: cargo-bins/cargo-binstall@main
143+
144+
- name: Install cargo-shear
145+
run: cargo binstall --no-confirm cargo-shear
146+
147+
- name: Run cargo shear
148+
run: cargo shear
149+
125150
coverage:
126151
name: Coverage
127152
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)