Files
Cubed/.github/workflows/format-check.yml

17 lines
399 B
YAML

# .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:21
steps:
- uses: actions/checkout@v4
- name: Run clang-format
run: |
find src include -name '*.cpp' -o -name '*.hpp' -print0 | xargs -0 clang-format --dry-run --Werror