From f6168c8101af7dc39dbfbed286d2b6f9e7271fd9 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Salinas Date: Mon, 6 May 2024 04:46:18 -0400 Subject: [PATCH] ci: Run clippy via GH Actions (#342) Co-authored-by: Felipe Contreras Salinas --- .github/workflows/clippy.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/clippy.yaml 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