File tree 2 files changed +52
-4
lines changed
2 files changed +52
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : CI
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - main
8
+ pull_request :
9
+
10
+ env :
11
+ RUSTFLAGS : -Dwarnings
12
+
13
+ jobs :
14
+ lint :
15
+ name : Lint
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Install Rust Toolchain
21
+ run : rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update
22
+
23
+ - uses : swatinem/rust-cache@v2
24
+
25
+ - name : Run Rustfmt
26
+ run : cargo fmt --all -- --check
27
+
28
+ - name : Run Clippy
29
+ run : cargo clippy --workspace --all-features --tests -- -D clippy::all
30
+
31
+ test :
32
+ name : Test (ubuntu)
33
+ runs-on : ubuntu-latest
34
+
35
+ steps :
36
+ - uses : actions/checkout@v2
37
+
38
+ - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # pin@v1
39
+ with :
40
+ toolchain : stable
41
+ profile : minimal
42
+ override : true
43
+
44
+ - uses : swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # pin@v1
45
+ with :
46
+ key : ${{ github.job }}
47
+
48
+ - name : Run Cargo Tests
49
+ uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # pin@v1
50
+ with :
51
+ command : test
52
+ args : --all
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments