Skip to content

Add .clang-format and apply the formatter #3

Add .clang-format and apply the formatter

Add .clang-format and apply the formatter #3

Workflow file for this run

name: Code Format Check
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install clang-format
run: sudo apt-get update && sudo apt-get install -y clang-format
- name: Check formatting
run: |
find src/ -name "*.c" -o -name "*.h" | xargs clang-format --dry-run --Werror