Code style enforcing #137
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: clang-format-review | |
# You can be more specific, but it currently only works on pull requests | |
on: [push, pull_request] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install clang-tidy | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y clang-tidy | |
- name: Analyze | |
run: | | |
clang-format --dry-run --Werror -style=file $(find ./src/ -name '*.cpp' -print) | |
clang-format --dry-run --Werror -style=file $(find ./include/ -name '*.hpp' -print) | |
clang-format --dry-run --Werror -style=file $(find ./include/ -name '*.h' -print) |