From fd9b61eacad2c10b8a9e1beea19f2c06adea2dbb Mon Sep 17 00:00:00 2001 From: Paul Lange Date: Wed, 1 Mar 2023 00:03:25 +0100 Subject: [PATCH] feat(CI): run clippy in CI --- .github/workflows/CI.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f08af14d75..d5e56dbe24 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -24,6 +24,7 @@ jobs: - ffi - ffi-header - doc + - clippy steps: - run: exit 0 @@ -235,3 +236,21 @@ jobs: with: command: rustdoc args: --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D broken-intra-doc-links + + clippy: + name: Run clippy + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + components: clippy + + - name: Run check + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -Aclippy::all -Dclippy::self_named_module_files