diff --git a/.github/workflows/ci-check-repo.yaml b/.github/workflows/ci-check-repo.yaml index b579a530ec..de5e940ba9 100644 --- a/.github/workflows/ci-check-repo.yaml +++ b/.github/workflows/ci-check-repo.yaml @@ -50,21 +50,6 @@ jobs: env: BRANCH_NAME: ${{ github.head_ref }} CHANGE_TARGET: ${{ github.base_ref }} - - name: Check generated protobufs - working-directory: ./proto - run: | - (cd third_party/protobuf && bazel build //:protoc) - (cd third_party/protobuf-go && go build -o ._protoc-gen-go ./cmd/protoc-gen-go) - (cd third_party/grpc-go/cmd/protoc-gen-go-grpc && go build -o ._protoc-gen-go-grpc .) - make clean all - changes=$(git status --porcelain) - diff=$(git diff) - if [ ! -z "$changes" ]; then - echo "ERROR: Generated protobuf structs are different from the checked in version." - echo "$changes" - echo "$diff" - exit 1 - fi - name: Check generated flatbuffers working-directory: ./go/serial run: | @@ -168,3 +153,18 @@ jobs: add: "." cwd: "." pull: "--ff" + - name: Check generated protobufs + working-directory: ./proto + run: | + (cd third_party/protobuf && bazel build //:protoc) + (cd third_party/protobuf-go && go build -o ._protoc-gen-go ./cmd/protoc-gen-go) + (cd third_party/grpc-go/cmd/protoc-gen-go-grpc && go build -o ._protoc-gen-go-grpc .) + make clean all + changes=$(git status --porcelain) + diff=$(git diff) + if [ ! -z "$changes" ]; then + echo "ERROR: Generated protobuf structs are different from the checked in version." + echo "$changes" + echo "$diff" + exit 1 + fi