/ dev / test-generate-protos.sh
test-generate-protos.sh
 1  #!/usr/bin/env bash
 2  
 3  set -e
 4  ./dev/generate-protos.sh
 5  
 6  GIT_STATUS="$(git status --porcelain)"
 7  if [ "$GIT_STATUS" ]; then
 8  	echo "Protobufs were not generated with protoc. Please run './dev/generate-protos.sh' or comment '/autoformat' on the PR"
 9  	echo "Git status is"
10  	echo "------------------------------------------------------------------"
11  	echo "$GIT_STATUS"
12  	exit 1
13  else
14  	echo "Test successful - Protobuf files generated"
15  fi