Skip to content

Commit

Permalink
feat(ci): Run clang-format to check files.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Sep 14, 2020
1 parent 160f296 commit 296a89c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 100
SortIncludes: false
25 changes: 25 additions & 0 deletions .github/workflows/clang-format-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: clang-format-lint

on:
push:
paths:
- "app/boards/**/*.c"
- "app/include/**/*.h"
- "app/src/**"
pull_request:
paths:
- "app/boards/**/*.c"
- "app/include/**/*.h"
- "app/src/**"

jobs:
build:
runs-on: ubuntu-latest
name: clang-format lint

steps:
- uses: actions/checkout@v2
- uses: DoozyX/[email protected]
with:
source: "./app"
extensions: "h,c"

0 comments on commit 296a89c

Please sign in to comment.