Skip to content

Commit 296a89c

Browse files
committed
feat(ci): Run clang-format to check files.
1 parent 160f296 commit 296a89c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.clang-format

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
BasedOnStyle: LLVM
2+
IndentWidth: 4
3+
ColumnLimit: 100
4+
SortIncludes: false
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: clang-format-lint
2+
3+
on:
4+
push:
5+
paths:
6+
- "app/boards/**/*.c"
7+
- "app/include/**/*.h"
8+
- "app/src/**"
9+
pull_request:
10+
paths:
11+
- "app/boards/**/*.c"
12+
- "app/include/**/*.h"
13+
- "app/src/**"
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
name: clang-format lint
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: DoozyX/[email protected]
23+
with:
24+
source: "./app"
25+
extensions: "h,c"

0 commit comments

Comments
 (0)