@@ -23,14 +23,12 @@ jobs:
23
23
24
24
steps :
25
25
- name : Checkout
26
- uses : actions/checkout@v2
26
+ uses : actions/checkout@v3
27
27
28
28
- name : Set up Rust
29
- uses : actions-rs/ toolchain@v1
29
+ uses : dtolnay/rust- toolchain@master
30
30
with :
31
- profile : minimal
32
31
toolchain : ${{ matrix.rust }}
33
- override : true
34
32
35
33
- name : (1.31.0) Downgrade serde_json
36
34
if : ${{ matrix.rust == '1.31.0' }}
@@ -39,53 +37,31 @@ jobs:
39
37
cargo update -p serde_json --precise 1.0.39
40
38
41
39
- name : Build (no_std)
42
- uses : actions-rs/cargo@v1
43
- with :
44
- command : build
45
- args : --no-default-features
40
+ run : cargo build --no-default-features
46
41
47
42
- name : Build
48
- uses : actions-rs/cargo@v1
49
- with :
50
- command : build
51
- args : --features "${{ matrix.features }}"
43
+ run : cargo build --features "${{ matrix.features }}"
52
44
53
45
- name : Test
54
- uses : actions-rs/cargo@v1
55
- with :
56
- command : test
57
- args : --features "${{ matrix.features }}"
46
+ run : cargo test --features "${{ matrix.features }}"
58
47
59
48
- name : Doc
60
- uses : actions-rs/cargo@v1
61
- with :
62
- command : doc
63
- args : --features "${{ matrix.features }}"
49
+ run : cargo doc --features "${{ matrix.features }}"
64
50
65
51
clippy :
66
52
name : Rustfmt and Clippy
67
53
runs-on : ubuntu-latest
68
54
steps :
69
55
- name : Checkout
70
- uses : actions/checkout@v2
56
+ uses : actions/checkout@v3
71
57
72
58
- name : Set up nightly Rust
73
- uses : actions-rs/ toolchain@v1
59
+ uses : dtolnay/rust- toolchain@nightly
74
60
with :
75
- profile : minimal
76
- toolchain : nightly
77
- override : true
78
61
components : rustfmt, clippy
79
62
80
63
- name : Rustfmt
81
- uses : actions-rs/cargo@v1
82
- with :
83
- command : fmt
84
- args : --all -- --check
64
+ run : cargo fmt --all -- --check
85
65
86
66
- name : Clippy
87
- uses : actions-rs/cargo@v1
88
- with :
89
- command : clippy
90
- # args: -- -D warnings
91
- args : --
67
+ run : cargo clippy # -- -D warnings
0 commit comments