Skip to content

Commit

Permalink
Add workflow for checking proto file formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Mar 27, 2023
1 parent b2f8541 commit fb45f4b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
Language: Proto
ColumnLimit: 100
...
17 changes: 17 additions & 0 deletions .github/workflows/proto-format-check.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
clang-format-version: 15
include-regex: ^.*\.proto$

0 comments on commit fb45f4b

Please sign in to comment.