Skip to content

Code style enforcing #137

Code style enforcing

Code style enforcing #137

Workflow file for this run

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)