@@ -106,33 +106,23 @@ jobs:
106
106
echo "DATABASE_URL=mysql://root@localhost/diesel_test" >> $GITHUB_ENV
107
107
108
108
- name : Install rust toolchain
109
- uses : actions-rs/ toolchain@v1
109
+ uses : dtolnay/rust- toolchain@master
110
110
with :
111
- profile : minimal
112
111
toolchain : ${{ matrix.rust }}
113
- override : true
114
112
- name : Rust version check
115
- uses : actions-rs/cargo@v1
116
- with :
117
- command : version
113
+ run : cargo +${{ matrix.rust }} version
118
114
119
115
- name : Test diesel_async
120
- uses : actions-rs/cargo@v1
121
- with :
122
- command : test
123
- args : --manifest-path Cargo.toml --no-default-features --features "${{ matrix.backend }}"
116
+ run : cargo +{{ matrix.rust }} test --manifest-path Cargo.toml --no-default-features --features "${{ matrix.backend }} deadpool bb8 mobc"
124
117
125
118
rustfmt_and_clippy :
126
119
name : Check rustfmt style && run clippy
127
120
runs-on : ubuntu-latest
128
121
steps :
129
122
- uses : actions/checkout@v2
130
- - uses : actions-rs/ toolchain@v1
123
+ - uses : dtolnay/rust- toolchain@stable
131
124
with :
132
- toolchain : stable
133
- profile : minimal
134
125
components : clippy, rustfmt
135
- override : true
136
126
- name : Cache cargo registry
137
127
uses : actions/cache@v2
138
128
with :
@@ -148,13 +138,7 @@ jobs:
148
138
find ~/.cargo/registry -iname "*clippy.toml" -delete
149
139
150
140
- name : Run clippy
151
- uses : actions-rs/cargo@v1
152
- with :
153
- command : clippy
154
- args : --all
141
+ run : cargo +stable clippy --all
155
142
156
143
- name : Check formating
157
- uses : actions-rs/cargo@v1
158
- with :
159
- command : fmt
160
- args : --all -- --check
144
+ run : cargo +stable fmt --all -- --check
0 commit comments