summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-09-14 09:46:35 -0400
committerGitHub <noreply@github.com>2020-09-14 09:46:35 -0400
commit9110335142813c60c4ae3572444d4f954c41ef14 (patch)
treed8f758f8d87e7e8f7bb7e2f39a8de2f0a3158e34 /.github/workflows
parent2c38947d1dcde236c27aba0c29042e4b610ee5d8 (diff)
parent191a2d755ad4761bd04a30a113e05119ad7aa61e (diff)
Merge pull request #183 from petejohanson/ops/clang-format-checks
Standardize code formatting using clang-format w/ LLVM style
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/clang-format-lint.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/clang-format-lint.yml b/.github/workflows/clang-format-lint.yml
new file mode 100644
index 0000000..061bc3d
--- /dev/null
+++ b/.github/workflows/clang-format-lint.yml
@@ -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/clang-format-lint-action@v0.9
+ with:
+ source: "./app"
+ extensions: "h,c"