We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2050eaf commit e4d9487Copy full SHA for e4d9487
1 file changed
.github/workflows/formatting-check.yml
@@ -1,23 +1,13 @@
1
-name: Formatting check
2
-
3
-on:
4
- pull_request:
5
- types:
6
- - "opened"
7
- - "reopened"
8
- - "synchronize"
9
- - "labeled"
10
- - "unlabeled"
11
+name: clang-format Check
+on: [push, pull_request]
12
jobs:
13
- formatting_check:
+ formatting-check:
14
name: Formatting Check
15
runs-on: ubuntu-latest
16
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
+ - uses: actions/checkout@v4
+ - name: Run clang-format style check for C++ programs.
+ uses: jidicula/clang-format-action@v4.15.0
+ with:
+ clang-format-version: '14'
+ check-path: 'src'
0 commit comments