Skip to content

Commit

Permalink
build: run linter on all files on main
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Jan 28, 2025
1 parent b2d6dfe commit 130d222
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 130d222

Please sign in to comment.