Skip to content

Commit 38e7f77

Browse files
committed
core: yml check test
1 parent 10bac65 commit 38e7f77

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/dsa-ci.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,22 @@ jobs:
1515
uses: actions/checkout@v3
1616

1717
- name: Install dependencies
18-
run: sudo apt-get update && sudo apt-get install -y cmake libgtest-dev
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y cmake clang clang-tidy libgtest-dev ninja-build
1921
20-
- name: Configure CMake
21-
run: cmake -S . -B build
22+
- name: Configure CMake (with Clang-Tidy)
23+
run: |
24+
cmake -S . -B build \
25+
-DENABLE_CLANG_TIDY=ON \
26+
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
27+
-G Ninja
28+
29+
- name: Run Clang-Tidy
30+
run: |
31+
echo "Running Clang-Tidy..."
32+
find SourceCodes Headers Tests -name '*.cpp' -o -name '*.h' | xargs clang-tidy -p build
33+
continue-on-error: false # Fail pipeline if any warning occurs
2234

2335
- name: Build
2436
run: cmake --build build

0 commit comments

Comments
 (0)