about summary refs log tree commit diff
diff options
context:
space:
mode:
authortempdragon <645703113@qq.com>2024-03-16 12:30:52 +0800
committertempdragon <645703113@qq.com>2024-03-16 12:30:52 +0800
commit4e4efb9b9e45d40f14a8911ed394fc00fa0dc518 (patch)
tree23390572b6e268dc9cf36d2a0e36d528c30fa91a
parent89acb108b48d206798e7ec2c8522c7650101036f (diff)
downloadrust-4e4efb9b9e45d40f14a8911ed394fc00fa0dc518.tar.gz
rust-4e4efb9b9e45d40f14a8911ed394fc00fa0dc518.zip
feat(ci): Add clippy check for both master and non-master
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f563583648d..44730bab4ed 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -98,6 +98,11 @@ jobs:
     - name: Check formatting
       run: cargo fmt -- --check
 
+    - name: clippy
+      run: |
+        cargo clippy --all-targets -- -D warnings
+        cargo clippy --all-targets --features master -- -D warnings
+
   duplicates:
     runs-on: ubuntu-latest
     steps: