summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/proto-format-check.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/proto-format-check.yml b/.github/workflows/proto-format-check.yml
new file mode 100644
index 0000000000..e88cb3b03d
--- /dev/null
+++ b/.github/workflows/proto-format-check.yml
@@ -0,0 +1,17 @@
+---
+name: Check formatting of proto files
+on:
+ pull_request:
+ paths:
+ - '**/*.proto'
+ workflow_dispatch:
+jobs:
+ check-formatting:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Run clang-format for proto files
+ uses: jidicula/clang-format-action@v4.11.0
+ with:
+ clang-format-version: 15
+ include-regex: ^.*\.proto$