We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eed469e commit 1b2e94bCopy full SHA for 1b2e94b
.github/workflows/check-format.yml
@@ -1,18 +1,29 @@
1
+
2
name: CI-format-check
3
4
on:
5
push:
6
+ paths:
7
+ - '**.h'
8
+ - '**.c'
9
+ - '.github/workflows/check-format.yml'
10
+ - '.clang-format'
11
pull_request:
12
13
14
15
16
17
18
jobs:
19
check-format:
20
runs-on: ubuntu-latest
- steps:
- - name: Install dependencies
- shell: bash
- run: sudo apt-get install git make clang-format
21
22
+ steps:
23
- uses: actions/checkout@v2
-
- - name: Check format -> make format-check
- run: make format-check
24
+ - uses: DoozyX/clang-format-lint-action@v0.12
25
+ with:
26
+ source: '.'
27
+ extensions: 'h,c'
28
+ clangFormatVersion: 12
29
+ inplace: False
0 commit comments