Skip to content

Commit 4ba7265

Browse files
authored
ci: add clippy ಠ_ಠ
ಠ_ಠ
1 parent ae16017 commit 4ba7265

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/clippy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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+
with:
37+
command: clippy
38+
args: -- -D warnings

0 commit comments

Comments
 (0)