Skip to content

Check coding style with GitHub CI #1

Check coding style with GitHub CI

Check coding style with GitHub CI #1

Workflow file for this run

name: Format CI
on: [push, pull_request]
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Check code format
run: |
FILES=$(find | grep -E "\.(c|h)\$")
for file in ${FILES};
do
clang-format -n -Werror ${file}
done