From 28b9e89356f5201cbc743935266b7fe2d8b9e0a7 Mon Sep 17 00:00:00 2001 From: DaXcess <46288749+DaXcess@users.noreply.github.com> Date: Thu, 8 Jun 2023 16:32:38 +0200 Subject: [PATCH] Create cargo-clippy.yml --- .github/workflows/cargo-clippy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/cargo-clippy.yml diff --git a/.github/workflows/cargo-clippy.yml b/.github/workflows/cargo-clippy.yml new file mode 100644 index 0000000..7f27b7d --- /dev/null +++ b/.github/workflows/cargo-clippy.yml @@ -0,0 +1,23 @@ +name: Cargo Clippy + +on: + pull_request: + branches: + - main + +jobs: + clippy: + name: Run Clippy + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Run Cargo Clippy + run: cargo clippy --all-targets --all-features -- -D warnings