From e96eec9772136930ae3fec7fce2e1000841a3431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffan=20S=C3=B8lvsten?= Date: Thu, 23 Jan 2025 15:44:49 +0100 Subject: [PATCH] Fix 'clang-format' does not check nested folders --- .github/workflows/static_analysis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 8e657513b..1f5e95246 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -61,7 +61,14 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: RafikFarhad/clang-format-github-action@v4 + - name: 'src/*' + uses: RafikFarhad/clang-format-github-action@v4 with: style: "file" - sources: "src/**/*.h,src/**/*.cpp,test/**/*.h,test/**/*.cpp" + sources: "src/*.h,src/*.cpp,src/*/*.h,src/*/*.cpp,src/*/*/*.h,src/*/*/*.cpp" + + - name: 'test/*' + uses: RafikFarhad/clang-format-github-action@v4 + with: + style: "file" + sources: "test/*.h,test/*.cpp,test/*/*.h,test/*/*.cpp,test/*/*/*.h,test/*/*/*.cpp"