Skip to content

Commit 94a5dac

Browse files
committed
add clippy github action
1 parent e3b1fa6 commit 94a5dac

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/clippy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Clippy Check
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
types: [ready_for_review, opened, synchronize, reopened]
7+
push:
8+
branches: [ main ]
9+
10+
jobs:
11+
rustfmt:
12+
if: github.event.pull_request.draft == false
13+
name: Rust formatting
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions-rust-lang/setup-rust-toolchain@v1
18+
with:
19+
components: clippy
20+
- name: Check lints with clippy
21+
uses: actions-rust-lang/clippy@v1

0 commit comments

Comments
 (0)