Add cargo shear to CI to check for unused dependencies
#3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Unused dependencies | |
| on: | |
| pull_request: | |
| paths: | |
| - .github/workflows/cargo-shear.yml | |
| - "**/*.rs" | |
| - "**/Cargo.toml" | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| cargo-shear: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install cargo-shear | |
| uses: taiki-e/install-action@cargo-shear | |
| - name: Run cargo shear | |
| run: cargo shear |