Skip to content

ci: Add style check to CI (#3) #3

ci: Add style check to CI (#3)

ci: Add style check to CI (#3) #3

Workflow file for this run

name: Clang Format
on:
push:
branches: [ main ]
paths:
- '.github/**'
- 'src/**'
- 'include/**'
- 'tests/**'
- '.clang-format'
pull_request:
branches: [ main ]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
path:
- 'src'
- 'include'
- 'tests'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check
uses: jidicula/clang-format-action@v4.15.0
with:
clang-format-version: '20'
check-path: ${{ matrix.path }}