summaryrefslogtreecommitdiffstats
path: root/.github/workflows/clang-format.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/clang-format.yml')
-rw-r--r--.github/workflows/clang-format.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml
new file mode 100644
index 0000000..6154959
--- /dev/null
+++ b/.github/workflows/clang-format.yml
@@ -0,0 +1,15 @@
+name: clang-format-lint
+
+on: [pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: DoozyX/clang-format-lint-action@v0.16.2
+ with:
+ source: './src'
+ style: file
+ clangFormatVersion: 14