@@ -15,22 +15,15 @@ jobs:
15
15
env :
16
16
RUSTFLAGS : -D warnings
17
17
steps :
18
- - uses : actions/checkout@v2
19
- - uses : actions-rs/ toolchain@v1
18
+ - uses : actions/checkout@v3
19
+ - uses : dtolnay/rust- toolchain@stable
20
20
with :
21
- toolchain : stable
22
21
components : rustfmt, clippy
23
- - uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
22
+ - uses : Swatinem/rust-cache@v2
24
23
- name : Lint (rustfmt)
25
- uses : actions-rs/cargo@v1
26
- with :
27
- command : xfmt
28
- args : --check
24
+ run : cargo xfmt --check
29
25
- name : Lint (clippy)
30
- uses : actions-rs/cargo@v1
31
- with :
32
- command : clippy
33
- args : --all-features --all-targets
26
+ run : cargo clippy --all-features --all-targets
34
27
35
28
build :
36
29
name : Build and test
@@ -44,20 +37,19 @@ jobs:
44
37
env :
45
38
RUSTFLAGS : -D warnings
46
39
steps :
47
- - uses : actions/checkout@v2
48
- - uses : actions-rs/ toolchain@v1
40
+ - uses : actions/checkout@v3
41
+ - uses : dtolnay/rust- toolchain@v1
49
42
with :
50
43
toolchain : ${{ matrix.rust-version }}
51
- override : true
52
- - uses : Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
44
+ - uses : Swatinem/rust-cache@v2
53
45
- name : Build
54
- uses : actions-rs/cargo@v1
55
- with :
56
- command : build
46
+ run : cargo build
57
47
- name : Install nextest
58
48
uses : taiki-e/install-action@nextest
59
49
- name : Test
60
- uses : actions-rs/cargo@v1
61
- with :
62
- command : nextest
63
- args : run --all-features
50
+ run : cargo nextest run --all-fatures
51
+ - name : Delete Cargo.lock and test against latest versions
52
+ if : matrix.rust-version == 'stable'
53
+ run : |
54
+ rm Cargo.lock
55
+ cargo nextest run --all-features
0 commit comments