Skip to content

Commit

Permalink
Create formatting-check.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Will <[email protected]>
  • Loading branch information
willhoy authored May 10, 2024
1 parent 32d8fb6 commit ebb5f52
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/formatting-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Formatting check

on:
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
- "labeled"
- "unlabeled"

jobs:
formatting_check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: clang-format style check
run: |
git clang-format-14 --diff -q origin/main | tee format_diff.txt
if [ -s format_diff.txt ]; then exit 1; fi

0 comments on commit ebb5f52

Please sign in to comment.