summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Chernyakhovsky <alex@achernya.com>2023-08-07 22:07:52 -0400
committerAlex Chernyakhovsky <achernya@mit.edu>2023-08-07 22:11:46 -0400
commit1105d481bb9143dad43adf768f58da7b029fd39c (patch)
tree2041a0ff0a612fcff38cfee8a1abae3f101521b5
parent05c7aceb1e96b9db6f9cf65a3367a98c8983443e (diff)
Run clang-format lint on pull requestsHEADmaster
-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