@@ -15,52 +15,29 @@ jobs:
15
15
rust : [stable, beta, nightly]
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
19
- - uses : actions-rs/ toolchain@v1
18
+ - uses : actions/checkout@v3
19
+ - uses : dtolnay/rust- toolchain@master
20
20
with :
21
21
toolchain : ${{ matrix.rust }}
22
- profile : minimal
23
- override : true
24
22
components : rustfmt
25
-
26
- - name : cargo test --all
27
- uses : actions-rs/cargo@v1
28
- with :
29
- command : test
30
- args : --all
31
- - name : cargo test --benches
32
- if : matrix.rust == 'nightly'
33
- uses : actions-rs/cargo@v1
34
- with :
35
- command : test
36
- args : --benches
37
-
23
+ - run : cargo test --workspace
24
+ - if : matrix.rust == 'nightly'
25
+ run : cargo test --benches
38
26
- name : Check minimal versions
39
27
if : matrix.rust == 'nightly'
40
28
run : |
41
29
cargo clean
42
30
cargo update -Z minimal-versions
43
31
cargo check
44
-
45
- - name : cargo fmt --check
46
- uses : actions-rs/cargo@v1
47
- with :
48
- command : fmt
49
- args : --all -- --check
32
+ - run : cargo fmt --all --check
50
33
51
34
MSRV :
52
35
runs-on : ubuntu-latest
53
36
54
37
steps :
55
- - uses : actions/checkout@v2
38
+ - uses : actions/checkout@v3
56
39
- name : Install rust ${{ env.minrust }}
57
- uses : actions-rs/ toolchain@v1
40
+ uses : dtolnay/rust- toolchain@master
58
41
with :
59
42
toolchain : ${{ env.minrust }}
60
- profile : minimal
61
- override : true
62
-
63
- - name : cargo build
64
- uses : actions-rs/cargo@v1
65
- with :
66
- command : build
43
+ - run : cargo build
0 commit comments