From ee46bd457653b02b136547f9960e74ab3144240b Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Fri, 10 Sep 2021 16:30:11 +0200 Subject: [PATCH] Try to run clang tidy --- .github/workflows/clang-tidy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/clang-tidy.yml diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml new file mode 100644 index 0000000..d7ce351 --- /dev/null +++ b/.github/workflows/clang-tidy.yml @@ -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