mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-13 11:09:10 -05:00
/.github/workflows/ci-check-repo.yaml: move protobuf check to after formatting
This commit is contained in:
30
.github/workflows/ci-check-repo.yaml
vendored
30
.github/workflows/ci-check-repo.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user