Skip to content

Commit

Permalink
ci: Add clang-tidy check
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Senichev <[email protected]>
  • Loading branch information
artemsen committed Aug 4, 2024
1 parent 5e7a282 commit 8860283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Checks: 'clang-diagnostic-*,clang-analyzer-*,performance-*'
WarningsAsErrors: '*'
4 changes: 4 additions & 0 deletions .github/workflows/Arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
-D tests=enabled
--auto-features=enabled
--prefix=/usr
--werror
${{ env.BUILD_PATH }}
- name: Compile and link
Expand All @@ -49,3 +50,6 @@ jobs:

- name: Run unit tests
run: docker exec swayimg meson test --verbose -C ${{ env.BUILD_PATH }}

- name: Run clang tidy
run: docker exec swayimg ninja -C ${{ env.BUILD_PATH }} clang-tidy

0 comments on commit 8860283

Please sign in to comment.