From 571a9d8492055907452b7525e936e6c4ebbefe6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fonseca?= Date: Wed, 27 Sep 2023 00:48:35 +0100 Subject: [PATCH] fix: let clang tidy reach headers --- .github/workflows/clang-tidy-lint.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-tidy-lint.yml b/.github/workflows/clang-tidy-lint.yml index edbf2093aa..a2949e2728 100644 --- a/.github/workflows/clang-tidy-lint.yml +++ b/.github/workflows/clang-tidy-lint.yml @@ -35,7 +35,15 @@ jobs: - name: Analyze run: | - git diff -U0 HEAD^ | clang-tidy-diff -p1 -path build -export-fixes clang-tidy-result/fixes.yml + run-clang-tidy -j$(nproc) -p=build \ + -header-filter="(core|engine)/include/.*" \ + files "(core|engine)/(src|samples|tests)/.*" \ + -export-fixes clang-tidy-result/fixes.yml + + - uses: actions/upload-artifact@v3 + with: + name: clang-tidy-fixes + path: clang-tidy-result/fixes.yml - name: Run clang-tidy-pr-comments action uses: platisd/clang-tidy-pr-comments@master