2022-11-22 23:22:07 +00:00
|
|
|
name: Protobuf Checks
|
|
|
|
|
|
|
|
on:
|
2022-11-30 20:30:32 +00:00
|
|
|
workflow_call:
|
2022-11-22 23:22:07 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-proto:
|
|
|
|
name: "Check Proto"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-08 22:06:03 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v4
|
2022-11-22 23:22:07 +00:00
|
|
|
with:
|
|
|
|
go-version-file: go.mod
|
|
|
|
- run: go mod download
|
|
|
|
- run: make install-build-deps
|
|
|
|
- run: make check-proto-deps
|
|
|
|
- run: make check-proto-lint
|
|
|
|
- run: make check-proto-format
|
2023-05-23 19:38:46 +00:00
|
|
|
- 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'
|
2022-11-22 23:22:07 +00:00
|
|
|
- run: make check-proto-gen
|
|
|
|
- run: make check-proto-gen-doc
|
|
|
|
- run: make check-proto-gen-swagger
|