-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eec51a1
commit b2f4190
Showing
1 changed file
with
6 additions
and
4 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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
# they are grouped under the same job as it's simpler than cahing | ||
# or artifact upload/download. Rith now the tests are pretty fast | ||
# so not much would be gained from parallel run of test & analysis | ||
build: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -36,7 +36,6 @@ jobs: | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure -E "LocalLogRepository" | ||
|
||
- name: Static Analysis | ||
if: always() | ||
run: ln -s ./build/compile_commands.json && run-clang-tidy ./source/ | ||
|
||
code-formatting: | ||
|
@@ -45,5 +44,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: clang-format | ||
run: find ./source ./test -iname '*.cpp' -o -iname '*.hpp' | xargs clang-format -n -Werror --ferror-limit=1 | ||
- uses: DoozyX/[email protected] | ||
with: | ||
source: 'source test' | ||
extensions: 'hpp,cpp' | ||
clangFormatVersion: 16 |