@@ -13,19 +13,30 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- name : Checkout repository
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v4
17
17
- name : Set up Rust
18
18
uses : dtolnay/rust-toolchain@v1
19
19
with :
20
20
toolchain : stable
21
+ components : rustfmt, clippy
21
22
- name : Run cargo check
23
+ if : success() || failure()
22
24
run : cargo check
25
+ - name : Check code formatting
26
+ if : success() || failure()
27
+ run : cargo fmt -- --check
28
+ - name : Run Clippy
29
+ if : success() || failure()
30
+ run : cargo clippy -- --deny warnings
23
31
24
- test :
25
- runs-on : ubuntu-latest
32
+ testing :
33
+ strategy :
34
+ matrix :
35
+ os : [ubuntu-latest, macos-latest]
36
+ runs-on : ${{ matrix.os }}
26
37
steps :
27
38
- name : Checkout repository
28
- uses : actions/checkout@v2
39
+ uses : actions/checkout@v4
29
40
- name : Set up Rust
30
41
uses : dtolnay/rust-toolchain@v1
31
42
with :
34
45
run : cargo install cargo-expand
35
46
- name : Run cargo test
36
47
run : cargo test --verbose
37
-
38
- fmt :
39
- runs-on : ubuntu-latest
40
- steps :
41
- - name : Checkout repository
42
- uses : actions/checkout@v2
43
- - name : Set up Rust
44
- uses : dtolnay/rust-toolchain@v1
45
- with :
46
- toolchain : stable
47
- components : rustfmt
48
- - name : Check code formatting
49
- run : cargo fmt -- --check
50
-
51
- clippy :
52
- runs-on : ubuntu-latest
53
- steps :
54
- - name : Checkout repository
55
- uses : actions/checkout@v2
56
- - name : Set up Rust
57
- uses : dtolnay/rust-toolchain@v1
58
- with :
59
- toolchain : stable
60
- components : clippy
61
- - name : Run Clippy
62
- run : cargo clippy -- --deny warnings
0 commit comments