@@ -35,16 +35,12 @@ jobs:
35
35
uses : actions/checkout@v3
36
36
37
37
- name : Install stable toolchain
38
- uses : actions-rs/ toolchain@v1
38
+ uses : dtolnay/rust- toolchain@master
39
39
with :
40
- profile : minimal
41
40
toolchain : stable
42
- override : true
43
41
- uses : Swatinem/rust-cache@v1
44
42
- name : Run cargo check
45
- uses : actions-rs/cargo@v1
46
- with :
47
- command : check
43
+ run : cargo check
48
44
49
45
test_os :
50
46
name : Tests on ${{ matrix.os }} with Rust ${{ matrix.rust }}
67
63
uses : actions/checkout@v3
68
64
69
65
- name : Install ${{ matrix.rust }} toolchain
70
- uses : actions-rs/ toolchain@v1
66
+ uses : dtolnay/rust- toolchain@master
71
67
with :
72
- profile : minimal
73
68
toolchain : ${{ matrix.rust }}
74
- override : true
75
69
- uses : Swatinem/rust-cache@v1
76
70
77
71
- name : Install Protoc
@@ -80,22 +74,13 @@ jobs:
80
74
repo-token : ${{ secrets.GITHUB_TOKEN }}
81
75
82
76
- name : Run cargo test (API)
83
- uses : actions-rs/cargo@v1
84
- with :
85
- command : test
86
- args : -p console-api
77
+ run : cargo test -p console-api
87
78
88
79
- name : Run cargo test (subscriber)
89
- uses : actions-rs/cargo@v1
90
- with :
91
- command : test
92
- args : -p console-subscriber
80
+ run : cargo test -p console-subscriber
93
81
94
82
- name : Run cargo test (console)
95
- uses : actions-rs/cargo@v1
96
- with :
97
- command : test
98
- args : -p tokio-console --locked
83
+ run : cargo test -p tokio-console --locked
99
84
100
85
lints :
101
86
name : Lints
@@ -105,22 +90,14 @@ jobs:
105
90
uses : actions/checkout@v3
106
91
107
92
- name : Install stable toolchain
108
- uses : actions-rs/ toolchain@v1
93
+ uses : dtolnay/rust- toolchain@master
109
94
with :
110
- profile : minimal
111
95
toolchain : stable
112
- override : true
113
96
components : rustfmt, clippy
114
97
- uses : Swatinem/rust-cache@v1
115
98
116
99
- name : Run cargo fmt
117
- uses : actions-rs/cargo@v1
118
- with :
119
- command : fmt
120
- args : --all -- --check
100
+ run : cargo fmt --all -- --check
121
101
122
102
- name : Run cargo clippy
123
- uses : actions-rs/cargo@v1
124
- with :
125
- command : clippy
126
- args : -- -D warnings
103
+ run : cargo clippy -- -D warnings
0 commit comments