mirror of https://github.com/hashicorp/boundary
Merge pull request #1842 from hashicorp/irindos-circli-proto-delta
ci(proto): Detect unchecked API and proto changespull/1854/head
commit
befdc7612c
@ -0,0 +1,20 @@
|
||||
---
|
||||
description: >
|
||||
Ensure protobuf is installed
|
||||
steps:
|
||||
- run:
|
||||
name: "Install protobuf"
|
||||
command: |
|
||||
make tools
|
||||
|
||||
VERSION="3.17.3"
|
||||
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
|
||||
ARCH="$(uname -m)"
|
||||
PACKAGE_NAME=protoc-$VERSION-linux-$ARCH.zip
|
||||
curl -LO $PB_REL/download/v$VERSION/$PACKAGE_NAME
|
||||
unzip $PACKAGE_NAME -d $HOME/.local
|
||||
rm $PACKAGE_NAME
|
||||
|
||||
echo 'export PATH=$HOME/.local/bin:$PATH' >> "$BASH_ENV"
|
||||
echo "$ protoc --version"
|
||||
protoc --version
|
||||
@ -0,0 +1,13 @@
|
||||
executor: go-machine-medium
|
||||
steps:
|
||||
- checkout
|
||||
- install-go
|
||||
- install-protobuf
|
||||
- run:
|
||||
name: "Check make gen deltas"
|
||||
command: |
|
||||
make gen
|
||||
echo "Testing git diffs..."
|
||||
git diff --exit-code
|
||||
git status --porcelain
|
||||
test -z "$(git status --porcelain)"
|
||||
Loading…
Reference in new issue