From efa4774b6be2c65fcfcad3cbf2ad7718ba861239 Mon Sep 17 00:00:00 2001 From: matheusgomes28 Date: Tue, 8 Oct 2024 20:48:56 +0100 Subject: [PATCH] Making sure we do a clang-format dry run with errors --- .github/workflows/cmake-single-platform.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 36abd29..7ec9572 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -16,12 +16,17 @@ jobs: runs-on: ubuntu-latest container: image: mattgomes28/jammy-cpp:0.0.0 + options: --user 1001 steps: - uses: actions/checkout@v4 - name: Run clang format - run: ./cpp-lint.sh + run: | + git ls-files "*.cpp" > format-files + git ls-files "*.hpp" > format-files + git ls-files "*.h" > format-files + clang-format -Werror --dry-run --files=format-files - name: Configure CMake run: cmake . --preset "unix-deb-ninja"