Skip to content

Commit c4f9bfb

Browse files
committed
Make code quality CI always run on all files
1 parent 0926cea commit c4f9bfb

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/code-quality.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ jobs:
2121
sudo apt-get install -y clang-format clang-tidy cmake g++ make
2222
bash scripts/install_dependency.sh
2323
24-
- name: Get changed C/C++ files
25-
id: changed-files
26-
uses: tj-actions/changed-files@v46.0.5
27-
with:
28-
files: |
29-
**/*.c
30-
**/*.h
31-
**/*.cpp
32-
**/*.cc
33-
**/*.hpp
34-
3524
- name: Create log directory
3625
run: mkdir -p logs
3726

@@ -41,7 +30,7 @@ jobs:
4130
echo "Running clang-format checks..."
4231
FORMAT_ERRORS=0
4332
44-
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
33+
for file in $(find . -iname '*.h' -or -iname '*.c' -or -iname '*.cpp' -or -iname '*.hpp' -or -iname '*.cc'); do
4534
echo "Checking formatting for $file"
4635
if ! clang-format --dry-run --Werror "$file" >> logs/format.log 2>&1; then
4736
echo "::error file=$file::Formatting issues in $file"
@@ -72,7 +61,7 @@ jobs:
7261
echo "Running clang-tidy checks..."
7362
FILES_WITH_ISSUES=0
7463
75-
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
64+
for file in $(find . -iname '*.h' -or -iname '*.c' -or -iname '*.cpp' -or -iname '*.hpp' -or -iname '*.cc'); do
7665
echo "Checking $file with clang-tidy"
7766
LOG_FILE="logs/tidy_$(basename "$file").log"
7867

0 commit comments

Comments
 (0)