/.github/workflows/ci-check-repo.yaml: move protobuf check to after formatting

This commit is contained in:
coffeegoddd
2023-04-26 11:06:31 -07:00
parent 969a9a3f21
commit 584609e848

View File

@@ -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