Skip to content

Commit

Permalink
Enforce clang-formatting in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanaya-mankad committed Oct 4, 2023
1 parent faaed9d commit bb60e56
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'include/${{github.workspace}}'
- 'test'
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C++ programs.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '16'
check-path: ${{ matrix.path }}

0 comments on commit bb60e56

Please sign in to comment.