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 4d4a95e commit b0cf5c1Copy full SHA for b0cf5c1
.github/workflows/ci.yml
@@ -0,0 +1,34 @@
1
+name: Check Format and Code Quality
2
+on:
3
+ workflow_dispatch:
4
+ workflow_call:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
+ - dev
10
+ paths:
11
+ - "src/**/**.rs"
12
+
13
+jobs:
14
+ check-fmt:
15
+ runs-on: ubuntu-22.04
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
+ - uses: dtolnay/rust-toolchain@stable
20
+ - name: checks
21
+ run: |
22
+ cargo fmt --all --check
23
24
+ check-clippy:
25
+ needs: [check-fmt]
26
27
28
29
30
31
+ - uses: Swatinem/rust-cache@v2
32
+ - name: cargo check
33
34
+ cargo clippy -- -D warnings
0 commit comments