diff --git a/.github/workflows/clippy.yaml b/.github/workflows/clippy.yaml new file mode 100644 index 00000000..8a29e04e --- /dev/null +++ b/.github/workflows/clippy.yaml @@ -0,0 +1,23 @@ +name: Clippy + +on: + pull_request: + branches: [ main ] + push: + branches: [ main ] + + +jobs: + lints: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Toolchain setup + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: rustfmt + + - name: Clippy + run: cargo clippy -- --all-features -Dwarnings