ci: add proto fmt check (#255)

This commit is contained in:
fys
2025-07-17 12:47:54 +08:00
committed by GitHub
parent 855dff1b87
commit dbfd68e984
+14
View File
@@ -45,6 +45,20 @@ jobs:
make go
test $(git status --porcelain=v1 | wc -l) -eq 0 || (echo "Fail: generated go protobuf in github action is different from pushed ones" ; exit 1)
proto-fmt:
name: Protobuf Format
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup Buf
uses: bufbuild/buf-action@v1
with:
setup_only: true
- name: Run Buf Format
run: buf format --diff --exit-code
fmt:
name: Rustfmt
if: github.event.pull_request.draft == false