We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae16017 commit 4ba7265Copy full SHA for 4ba7265
.github/workflows/clippy.yml
@@ -0,0 +1,38 @@
1
+name: clippy
2
+on:
3
+ pull_request:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+
9
+jobs:
10
+ clippy:
11
+ runs-on: ubuntu-22.04
12
13
+ steps:
14
+ - uses: actions/checkout@v2
15
16
+ - uses: actions-rs/toolchain@v1
17
+ with:
18
+ profile: minimal
19
+ toolchain: stable
20
+ override: true
21
+ components: clippy
22
23
+ - name: Cache .cargo and target
24
+ uses: actions/cache@v2
25
26
+ path: |
27
+ ~/.cargo
28
+ ./target
29
+ key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
30
+ restore-keys: |
31
+ ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
32
+ ${{ runner.os }}-cargo-clippy
33
34
+ - name: cargo clippy
35
+ uses: actions-rs/cargo@v1
36
37
+ command: clippy
38
+ args: -- -D warnings
0 commit comments