Skip to content

Commit

Permalink
CI: Add checker for formatting style
Browse files Browse the repository at this point in the history
  • Loading branch information
0x8000-0000 committed Nov 25, 2021
1 parent 491ba2d commit 7d0dbab
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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++-11]
build_type: [Debug]
std: [20]
os: [ubuntu-20.04]

steps:
- uses: actions/checkout@v2

- name: Check-format
working-directory: ${{runner.workspace}}
run: |
clang-format-11 -i --Werror --dry-run $(find . -name \*.cc) $(find . -name \*.h)

0 comments on commit 7d0dbab

Please sign in to comment.