From 6f8f1428c70a72693193d13af33453869bd1a394 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 26 Nov 2024 10:44:43 -0800 Subject: [PATCH] Test that all source files are covered by rustfmt --- .github/workflows/CI.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f4b69a304..6e77d42e5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,6 +18,11 @@ jobs: toolchain: stable components: rustfmt - run: cargo fmt -- --check + - name: test that all source files are covered by rustfmt + run: | + for f in $(find src -name '*.rs'); do echo -e '\n\n\n\n\n' >> $f; done + cargo fmt + git diff --exit-code # expect all changes from above wiped away clippy: runs-on: ${{ matrix.os }}