Skip to content

Commit

Permalink
Add clang-format CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Jun 11, 2024
1 parent 3d95166 commit 805003f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ on:
- cron: "0 6 * * 1-5"

jobs:
check_format:
name: Check codebase format with clang-format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run clang-format dry-run
run: find include/ src/ tests/ examples/ -iname -o -iname "*.h" -o -iname "*.c" | xargs clang-format -n -Werror

build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 805003f

Please sign in to comment.