diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce8c8f0c6..693e10f8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -233,3 +233,20 @@ jobs: cmake --build build/Debug --target ${file%.cpp}.o fi done + + linterAll: + name: Build/Run linter on all files + needs: dockerImage + if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'trigger-linter') + runs-on: ubuntu-latest + container: + image: ghcr.io/genspectrum/lapis-silo-dependencies:commit-${{ github.sha }} + steps: + - uses: actions/checkout@v4 + + - shell: bash + name: Configure and run clang-tidy on changed files + run: | + mv /src/build . + cmake -DBUILD_WITH_CLANG_TIDY=on -D CMAKE_BUILD_TYPE=Debug -B build/Debug + cmake --build build/Debug