File tree Expand file tree Collapse file tree 2 files changed +53
-16
lines changed Expand file tree Collapse file tree 2 files changed +53
-16
lines changed Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ branches : ["master"]
6
+ pull_request :
7
+ branches : ["master"]
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ test :
14
+ runs-on : ubuntu-latest
15
+ strategy :
16
+ matrix :
17
+ rust :
18
+ - stable
19
+ - nightly
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ - uses : dtolnay/rust-toolchain@master
23
+ with :
24
+ toolchain : ${{ matrix.rust }}
25
+ - name : Build
26
+ run : cargo build
27
+ - name : Test
28
+ run : cargo test
29
+
30
+ lint :
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ - uses : dtolnay/rust-toolchain@master
35
+ with :
36
+ toolchain : stable
37
+ components : rustfmt clippy
38
+ - name : Run rustfmt check
39
+ run : cargo fmt --all -- --check
40
+ - name : Run clippy
41
+ run : cargo clippy --all --all-targets -- -D warnings
42
+
43
+ all-features :
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - uses : actions/checkout@v4
47
+ - uses : dtolnay/rust-toolchain@master
48
+ with :
49
+ toolchain : nightly # The bench feature requires nightly
50
+ - name : Test all features
51
+ run : cargo test --all-features
52
+
53
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments