-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lint): Add lint to CI include checking for cmake-format,clang-fo…
…rma and license header
- Loading branch information
1 parent
4c199bc
commit c70082d
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
name: Ubuntu Build & Test | ||
|
||
on: | ||
|
@@ -7,6 +8,22 @@ on: | |
branches: [main] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Setup Ubuntu | ||
run: ./scripts/setup-ubuntu.sh | ||
- name: Check License Header | ||
uses: apache/skywalking-eyes/[email protected] | ||
- name: Check CMake files | ||
run: find . \( -name '*.cmake' -o -name 'CMakeLists.txt' \) -exec cmake-format $* {} + | ||
- name: Clang-tidy | ||
run: python3 scripts/run-clang-tidy.py "." "build" "third_party,scripts,docker,cmake_modules" "h,hpp,cc,cpp" | ||
- run: mkdir build | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
header: | ||
license: | ||
spdx-id: Apache-2.0 | ||
copyright-owner: Apache Software Foundation | ||
content: | | ||
SPDX-License-Identifier: Apache-2.0 | ||
paths-ignore: | ||
- 'dist' | ||
- 'licenses' | ||
- '.github' | ||
- '.gitignore' | ||
- '.gitmodules' | ||
- '.clang-format' | ||
- '.clang-tidy' | ||
- '.licenserc.yaml' | ||
- '**/*.md' | ||
- 'LICENSE' | ||
- 'NOTICE' | ||
- '**/*.json' | ||
- '**/*.log' | ||
|
||
comment: on-failure | ||
comment: never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
#include <any> | ||
#include <map> | ||
#include <string> | ||
|