BRAYNS-649 Add clang tidy #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linter | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
clang-format-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run clang-format | |
run: | | |
sudo apt-get update | |
wget https://apt.llvm.org/llvm.sh | |
sudo chmod +x llvm.sh | |
sudo ./llvm.sh 20 | |
sudo apt-get install clang-format-20 | |
sudo apt-get install clang-tidy-20 | |
SOURCES=$(find apps src tests \( -name "*.h" -or -name "*.cpp" \)) | |
clang-format-20 --dry-run --Werror $SOURCES |