diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..5b76778 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,2 @@ +Checks: 'clang-diagnostic-*,clang-analyzer-*,performance-*' +WarningsAsErrors: '*' diff --git a/.github/workflows/Arch.yml b/.github/workflows/Arch.yml index 712e884..275666d 100644 --- a/.github/workflows/Arch.yml +++ b/.github/workflows/Arch.yml @@ -33,6 +33,7 @@ jobs: -D tests=enabled --auto-features=enabled --prefix=/usr + --werror ${{ env.BUILD_PATH }} - name: Compile and link @@ -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