Skip to content

Commit 53580c1

Browse files
committed
Add rustfmt CI for currently formatted directories
1 parent fed5ea8 commit 53580c1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,11 @@ jobs:
116116
rustup override set nightly
117117
- name: Formatting (miri, ui_test)
118118
run: cargo fmt --all --check
119-
- name: Formatting (cargo-miri)
120-
run: cargo fmt --manifest-path cargo-miri/Cargo.toml --all --check
119+
- name: Formatting (everything else)
120+
# TODO: Add `tests` (work in progress).
121+
# Maybe change to `find . -name '*.rs'`, superseding the previous step.
122+
run: find bench-cargo-miri benches cargo-miri test-cargo-miri -name '*.rs'
123+
| xargs rustfmt --edition=2021 --config-path ./rustfmt.toml --check
121124

122125
# These jobs doesn't actually test anything, but they're only used to tell
123126
# bors the build completed, as there is no practical way to detect when a

0 commit comments

Comments
 (0)