0g-chain/.github/workflows/proto.yml
Nick DeLuca 252fafa53a
Fix remote check proto breaking when not branching from master (#1409)
* fix check remote breaking when not branching from master -- always use
current git branch when ref'ing

* fix remote command when overridden
2022-11-30 11:48:00 -07:00

28 lines
760 B
YAML

name: Protobuf Checks
on:
push:
pull_request:
jobs:
check-proto:
name: "Check Proto"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
- run: go mod download
- run: make install-build-deps
- run: make check-proto-deps
- run: make check-proto-lint
- run: make check-proto-format
- run: make check-proto-breaking-remote
- run: BUF_CHECK_BREAKING_AGAINST_REMOTE="branch=$GITHUB_BASE_REF" make check-proto-breaking-remote
if: github.event_name == 'pull_request'
- run: make check-proto-gen
- run: make check-proto-gen-doc
- run: make check-proto-gen-swagger