We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 043aea0 + 0c0e8ff commit 8d557e7Copy full SHA for 8d557e7
1 file changed
.github/workflows/ci.yaml
@@ -0,0 +1,43 @@
1
+name: CI
2
+
3
+on:
4
+ pull_request:
5
+ workflow_dispatch:
6
7
+jobs:
8
+ lints:
9
+ name: Formatting + Clippy
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout sources
13
+ uses: actions/checkout@v3
14
15
+ - name: Install Rust toolchain
16
+ uses: actions-rs/toolchain@v1
17
+ with:
18
+ profile: minimal
19
+ toolchain: stable
20
+ override: true
21
+ components: rustfmt, clippy
22
23
+ - name: Run cargo build
24
+ uses: actions-rs/cargo@v1
25
26
+ command: build
27
28
+ - name: Run cargo fmt
29
30
31
+ command: fmt
32
33
+ - name: Run cargo clippy
34
35
36
+ command: clippy
37
+ args: -- -D warnings
38
39
+ - name: Run clippy on tests
40
41
42
43
+ args: --tests -- -D warnings
0 commit comments