let's check the format via some github action
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 30 Sep 2022 14:43:23 +0000 (16:43 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Tue, 4 Oct 2022 16:31:50 +0000 (18:31 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
.github/workflows/clang-format.yml [new file with mode: 0644]

diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml
new file mode 100644 (file)
index 0000000..0547ee6
--- /dev/null
@@ -0,0 +1,15 @@
+name: Clang Format Checker
+on:
+  pull_request:
+    types: [opened, synchronize, reopened]
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    - uses: DoozyX/clang-format-lint-action@v0.14
+      with:
+        source: '.'
+        extensions: 'h,cpp,c'
+        clangFormatVersion: 14