Skip to content

Add a formatting style and apply it to the entire repo #12

Add a formatting style and apply it to the entire repo

Add a formatting style and apply it to the entire repo #12

Workflow file for this run

name: Run Clang-Format Check
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
clang-format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Clang-Format
run: sudo apt-get install -y clang-format
- name: Check formatting with Clang-Format
run: >-
find . -name '*.c' -o -name '*.h'
-o -name '*.cpp' -o -name '*.hpp'
-exec clang-format --dry-run -Werror $FILES