Skip to content

Commit 8a77fdf

Browse files
committed
Add CI to check formatting of top-crates crate
1 parent 806ce3e commit 8a77fdf

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,16 @@ jobs:
182182
~/.cargo/git
183183
ui/target
184184
key: "${{ runner.os }}-cargo-${{ hashFiles('ui/**/Cargo.lock') }}-2"
185-
- name: Format
185+
- name: Format server
186186
uses: actions-rs/cargo@v1
187187
with:
188188
command: fmt
189-
args: "--manifest-path ui/Cargo.toml --all -- --check"
189+
args: "--manifest-path ui/Cargo.toml --all --check"
190+
- name: Format top-crates
191+
uses: actions-rs/cargo@v1
192+
with:
193+
command: fmt
194+
args: "--manifest-path top-crates/Cargo.toml --check"
190195
- name: Build backend
191196
run: |-
192197
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 $'

ci/workflows.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,17 @@ workflows:
279279
ui/target
280280
key: ${{ runner.os }}-cargo-${{ hashFiles('ui/**/Cargo.lock') }}-2
281281

282-
- name: "Format"
282+
- name: "Format server"
283283
uses: actions-rs/cargo@v1
284284
with:
285285
command: fmt
286-
args: --manifest-path ui/Cargo.toml --all -- --check
286+
args: --manifest-path ui/Cargo.toml --all --check
287+
288+
- name: "Format top-crates"
289+
uses: actions-rs/cargo@v1
290+
with:
291+
command: fmt
292+
args: --manifest-path top-crates/Cargo.toml --check
287293

288294
- name: "Build backend"
289295
run: >-

0 commit comments

Comments
 (0)