sharkdp/fd

Add clippy check to github actions CI

garlic-hub opened this issue · 2 comments

Hello. I recently submitted a PR to fix all active clippy warnings (which was merged, thank you). With that done, I'm wondering if there's interest to automatically flag a warning on any PR that introduces a clippy warning?

I'm thinking something like this. Not too familiar with github actions

  check_cargo_clippy:
    name: Ensure 'cargo clippy' warnings have been addressed
    runs-on: ubuntu-20.04
    steps:
    - uses: dtolnay/rust-toolchain@stable
    - uses: actions/checkout@v4
    - run: cargo clippy --all-targets --all-features

we do actually run clippy in our github actions. But right now only on the MSRV version.