From 850bb47805f5d2b461faa2bdc262bede5a45b562 Mon Sep 17 00:00:00 2001 From: JCW Date: Tue, 22 Jul 2025 16:59:15 +0100 Subject: [PATCH] Test Signed-off-by: JCW --- .github/workflows/clang-format.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index b2a75f439b..d2166d5f4d 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -12,12 +12,17 @@ jobs: container: ghcr.io/xrplf/ci/tools-rippled-clang-format steps: - uses: actions/checkout@v4 + - name: Format first-party sources + run: | + clang-format --version + find include src tests -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.ipp' \) -exec clang-format -i {} + - name: Check for differences id: assert shell: bash run: | pwd ls -a + git config --global --add safe.directory $(pwd) set -o pipefail git diff --exit-code | tee "clang-format.patch" - name: Upload patch @@ -28,10 +33,6 @@ jobs: name: clang-format.patch if-no-files-found: ignore path: clang-format.patch - - name: Format first-party sources - run: | - clang-format --version - find include src tests -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.ipp' \) -exec clang-format -i {} + - name: What happened? if: failure() && steps.assert.outcome == 'failure' env: