Skip to content

Commit efaae33

Browse files
committed
Add clang-tidy-pr-comments action
1 parent 5c0f8cb commit efaae33

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,20 @@ jobs:
2828
- name: Run static analysis (cppcheck)
2929
run: |
3030
cppcheck --std=c++11 --enable=performance,portability,information --quiet --error-exitcode=1 src/
31-
- name: Run static analysis (clang-tidy)
32-
run: bash run_clang-tidy.sh
31+
- name: Run clang-tidy
32+
run: |
33+
run-clang-tidy-8 \
34+
-p=test/build \
35+
-j$(nproc) \
36+
-header-filter=src/* \
37+
files src/* \
38+
-export-fixes clang-tidy-fixes.yaml
39+
- name: Run clang-tidy-pr-comments action
40+
uses: platisd/clang-tidy-pr-comments@master
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
clang_tidy_fixes: clang-tidy-fixes.yaml
44+
request_changes: true
3345
- name: Get coverage report (only for GCC)
3446
if: ${{ matrix.compiler.cc }} == 'gcc-10'
3547
run: |

0 commit comments

Comments
 (0)