Try to run clang tidy

This commit is contained in:
Patricia Aas 2021-09-10 16:30:11 +02:00 committed by GitHub
parent 64d30408c6
commit ee46bd4576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
.github/workflows/clang-tidy.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Clang Tidy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Install clang-tidy
run: sudo apt-get install clang-tidy
- name: Run clang-tidy
working-directory: ${{runner.workspace}}/build
run: run-clang-tidy