File tree Expand file tree Collapse file tree 8 files changed +689
-582
lines changed Expand file tree Collapse file tree 8 files changed +689
-582
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,13 @@ jobs:
167
167
uses : actions/checkout@v2
168
168
with :
169
169
ref : " ${{ github.event.pull_request.head.sha }}"
170
+ - name : Install Rust
171
+ uses : actions-rs/toolchain@v1
172
+ with :
173
+ profile : minimal
174
+ toolchain : stable
175
+ override : true
176
+ components : rustfmt
170
177
- name : Cache Cargo intermediate products
171
178
uses : actions/cache@v2
172
179
with :
@@ -175,6 +182,11 @@ jobs:
175
182
~/.cargo/git
176
183
ui/target
177
184
key : " ${{ runner.os }}-cargo-${{ hashFiles('ui/**/Cargo.lock') }}-2"
185
+ - name : Format
186
+ uses : actions-rs/cargo@v1
187
+ with :
188
+ command : fmt
189
+ args : " --manifest-path ui/Cargo.toml --all -- --check"
178
190
- name : Build backend
179
191
run : |-
180
192
mkdir -p ui/target; docker run --rm -v $PWD/ui:/ui -v ~/.cargo/git:/home/rust/.cargo/git -v ~/.cargo/registry:/home/rust/.cargo/registry --workdir /ui ekidd/rust-musl-builder:stable bash -c '
Original file line number Diff line number Diff line change @@ -262,6 +262,14 @@ workflows:
262
262
steps :
263
263
- *checkout_pr
264
264
265
+ - name : " Install Rust"
266
+ uses : actions-rs/toolchain@v1
267
+ with :
268
+ profile : minimal
269
+ toolchain : stable
270
+ override : true
271
+ components : rustfmt
272
+
265
273
- name : " Cache Cargo intermediate products"
266
274
uses : actions/cache@v2
267
275
with :
@@ -271,6 +279,12 @@ workflows:
271
279
ui/target
272
280
key : ${{ runner.os }}-cargo-${{ hashFiles('ui/**/Cargo.lock') }}-2
273
281
282
+ - name : " Format"
283
+ uses : actions-rs/cargo@v1
284
+ with :
285
+ command : fmt
286
+ args : --manifest-path ui/Cargo.toml --all -- --check
287
+
274
288
- name : " Build backend"
275
289
run : >-
276
290
mkdir -p ui/target;
You can’t perform that action at this time.
0 commit comments