Skip to content

Commit

Permalink
Check coding style with GitHub CI
Browse files Browse the repository at this point in the history
Close #6
  • Loading branch information
alanjian85 committed May 15, 2024
1 parent 56b58d0 commit 4998cdc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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

0 comments on commit 4998cdc

Please sign in to comment.