File tree Expand file tree Collapse file tree 1 file changed +9
-19
lines changed
Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Original file line number Diff line number Diff line change 1- name : Formatting check
2-
3- on :
4- pull_request :
5- types :
6- - " opened"
7- - " reopened"
8- - " synchronize"
9- - " labeled"
10- - " unlabeled"
11-
1+ name : clang-format Check
2+ on : [push, pull_request]
123jobs :
13- formatting_check :
4+ formatting-check :
145 name : Formatting Check
156 runs-on : ubuntu-latest
167 steps :
17- - uses : actions/checkout@v4
18- with :
19- fetch-depth : 0
20- - name : clang-format style check
21- run : |
22- git clang-format-14 --diff -q origin/main | tee format_diff.txt
23- if [ -s format_diff.txt ]; then exit 1; fi
8+ - uses : actions/checkout@v4
9+ - name : Run clang-format style check for C++ programs.
10+ uses : jidicula/clang-format-action@v4.15.0
11+ with :
12+ clang-format-version : ' 14'
13+ check-path : ' src'
You can’t perform that action at this time.
0 commit comments