summaryrefslogtreecommitdiff
path: root/.github/workflows/clang-format-lint.yml
diff options
context:
space:
mode:
authorNick <nick.win999@gmail.com>2020-09-15 14:41:59 -0500
committerNick <nick.win999@gmail.com>2020-09-15 14:41:59 -0500
commit18d21b0362c5c09902836ed4791bd13e1efd9a9a (patch)
tree3f78a0ef43fc23e93195e1205a31f77154af7e76 /.github/workflows/clang-format-lint.yml
parent81bc157f539235ad032fde78b6f6cec7a16d2c39 (diff)
parentc0806d27f1d048db335ecc854eab61b59e23ea7a (diff)
Merge remote-tracking branch 'upstream/main' into underglow/state-persistence
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"