Skip to content

Add clang-tidy CI check #19

Add clang-tidy CI check

Add clang-tidy CI check #19

Workflow file for this run

name: Static analysis
on: [push, pull_request]
jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DoozyX/[email protected]
with:
source: '.'
clang-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ZedThree/[email protected]
id: review
with:
apt_packages: libomp-dev
build_dir: build
cmake_command: cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
config_file: .clang-tidy
exclude: 3rdparty
split_workflow: false
lgtm_comment_body: ""
- if: steps.review.outputs.total_comments > 0
run: exit 1