CI: Add checker for formatting style

This commit is contained in:
Florin Iucha 2021-11-25 11:40:12 -05:00
parent acad8cfab1
commit 5779ca7ad3

View File

@ -77,3 +77,20 @@ jobs:
run: ctest -C ${{matrix.build_type}}
env:
CTEST_OUTPUT_ON_FAILURE: True
check-format:
runs-on: ubuntu-20.04
strategy:
matrix:
cxx: [clang++-13]
build_type: [Debug]
std: [20]
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Check-format
working-directory: ${{runner.workspace}}
run: |
clang-format-13 -i --Werror --dry-run $(find . -name \*.cc) $(find . -name \*.h)