A CI step to validate by comparing with the internal protos #410
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| check-latest: true | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@v2 | |
| - name: Validate and build go bindings from the proto files | |
| run: make ci-build | |
| env: | |
| BUF_INPUT_HTTPS_USERNAME: ${{github.actor}} | |
| BUF_INPUT_HTTPS_PASSWORD: ${{github.token}} | |
| validation: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout current repo | |
| uses: actions/checkout@v4 | |
| - name: Clone saas-proto repository | |
| run: | | |
| git clone --depth 1 --branch abhinav/protoCompareExistingRemote https://${{ github.token }}@github.com/temporalio/saas-proto.git | |
| - name: Run proto compare | |
| run: | | |
| cd saas-proto | |
| go run ./tools/proto-compare -existing-remote-repo .. |