Skip to content

Commit b330c53

Browse files
committed
feat(lint): Add lint to CI include checking for cmake-format,clang-forma and license header
1 parent 4c199bc commit b330c53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build_test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
submodules: recursive
1717
- name: Setup Ubuntu
1818
run: ./scripts/setup-ubuntu.sh
19+
- name: Check License Header
20+
uses: apache/skywalking-eyes/[email protected]
21+
- name: Check CMake files
22+
run: find . \( -name '*.cmake' -o -name 'CMakeLists.txt' \) -exec cmake-format $* {} +
23+
- name: Clang-tidy
24+
run: python3 scripts/run-clang-tidy.py "." "build" "third_party,scripts,docker,cmake_modules" "h,hpp,cc,cpp"
1925
- run: mkdir build
2026
- name: Run cmake
2127
run: cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug

0 commit comments

Comments
 (0)