summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2022-12-17 13:12:11 +0100
committerFábio Maciel <6810827+fabiomaciel@users.noreply.github.com>2022-12-17 11:40:05 -0300
commitb6d2828a2d8200d35435086e6605085508ce3970 (patch)
tree7eeaf295aa84a33b6dc2cc47dd8949fce70bccc8
parent476fcd113270fac1adac7c0cbbd5e221d2b5ad95 (diff)
CI: Add checkstyle checking to workflow
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
-rw-r--r--.github/workflows/clang-format-check.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml
new file mode 100644
index 0000000..3976b57
--- /dev/null
+++ b/.github/workflows/clang-format-check.yml
@@ -0,0 +1,19 @@
+name: clang-format Check
+on: [push, pull_request]
+jobs:
+ formatting-check:
+ name: Formatting Check
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ path:
+ - 'src'
+ - 'test'
+ steps:
+ - uses: actions/checkout@v3
+ - name: Run clang-format style check for C/C++ programs.
+ uses: jidicula/clang-format-action@v4.9.0
+ with:
+ clang-format-version: '14'
+ check-path: ${{ matrix.path }}
+ fallback-style: 'Mozilla'