summaryrefslogtreecommitdiff
path: root/.github/workflows/clang-format-lint.yml
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-09-10 15:02:37 -0400
committerPete Johanson <peter@peterjohanson.com>2020-09-14 00:08:13 -0400
commit296a89ce6364fd97099d694dddcbb30e8b0925c0 (patch)
tree12b9686d9d326c5d8bf894b10e6d8b5aa05da31d /.github/workflows/clang-format-lint.yml
parent160f296bfb562ca0596630f84c4121920ea3c304 (diff)
feat(ci): Run clang-format to check files.
Diffstat (limited to '.github/workflows/clang-format-lint.yml')
-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"