From dbfd68e984a0e0b02621e3e8043021c80e086a7b Mon Sep 17 00:00:00 2001 From: fys <40801205+fengys1996@users.noreply.github.com> Date: Thu, 17 Jul 2025 12:47:54 +0800 Subject: [PATCH] ci: add proto fmt check (#255) --- .github/workflows/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c270ab4..a30bd3c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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