Add workflow for checking proto file formatting

This commit is contained in:
David Lönnhager 2023-03-27 13:50:14 +02:00
parent b2f85417ec
commit fb45f4bfca
2 changed files with 21 additions and 0 deletions

4
.clang-format Normal file
View File

@ -0,0 +1,4 @@
---
Language: Proto
ColumnLimit: 100
...

View 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$