Add workflow for checking proto file formatting
This commit is contained in:
parent
b2f85417ec
commit
fb45f4bfca
4
.clang-format
Normal file
4
.clang-format
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
Language: Proto
|
||||
ColumnLimit: 100
|
||||
...
|
17
.github/workflows/proto-format-check.yml
vendored
Normal file
17
.github/workflows/proto-format-check.yml
vendored
Normal file
@ -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$
|
Loading…
x
Reference in New Issue
Block a user