Add rustfmt CI for currently formatted directories

This commit is contained in:
David Tolnay 2022-06-20 02:43:13 -07:00
parent fed5ea8b10
commit 53580c1e18
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -116,8 +116,11 @@ jobs:
rustup override set nightly
- name: Formatting (miri, ui_test)
run: cargo fmt --all --check
- name: Formatting (cargo-miri)
run: cargo fmt --manifest-path cargo-miri/Cargo.toml --all --check
- name: Formatting (everything else)
# TODO: Add `tests` (work in progress).
# Maybe change to `find . -name '*.rs'`, superseding the previous step.
run: find bench-cargo-miri benches cargo-miri test-cargo-miri -name '*.rs'
| xargs rustfmt --edition=2021 --config-path ./rustfmt.toml --check
# These jobs doesn't actually test anything, but they're only used to tell
# bors the build completed, as there is no practical way to detect when a