From 53580c1e18a38ddcc0508df5084c8ce2eeb58c42 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 20 Jun 2022 02:43:13 -0700 Subject: [PATCH] Add rustfmt CI for currently formatted directories --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55da948f7b7..ee65d58dcca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 -- 2.44.0