# .github/workflows/format-check.yml
name: Code Format Check

on: [push, pull_request]

permissions:
  contents: read

jobs:
  formatting:
    runs-on: ubuntu-latest
    container: silkeh/clang:latest   
    steps:
      - uses: actions/checkout@v4
      - name: Run clang-format
        run: |
          find src include -name '*.cpp' -o -name '*.h' -print0 | xargs -0 clang-format --dry-run --Werror