CI: Add clang-formatter lint workflow for proto files (#14831)

* Enforce clang-format for proto files in proto/

* Update pb files after #14818

* Changelog fragment
This commit is contained in:
Preston Van Loon
2025-01-27 14:01:21 -06:00
committed by GitHub
parent 536cded4cc
commit b4220e35c4
60 changed files with 4136 additions and 3007 deletions

21
.github/workflows/clang-format.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Protobuf Format
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
merge_group:
types: [checks_requested]
jobs:
clang-format-checking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Is this step failing for you?
# Run: clang-format -i proto/**/*.proto
# See: https://clang.llvm.org/docs/ClangFormat.html
- uses: RafikFarhad/clang-format-github-action@v3
with:
sources: "proto/**/*.proto"