2021-08-18 11:09:50 +00:00
|
|
|
name: Protobuf
|
|
|
|
# Protobuf runs buf (https://buf.build/) lint and check-breakage
|
|
|
|
# This workflow is only run when a .proto file has been changed
|
|
|
|
on:
|
|
|
|
pull_request:
|
2022-06-22 08:28:23 +00:00
|
|
|
paths:
|
|
|
|
- "proto/**"
|
2021-08-18 11:09:50 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
2022-03-03 17:07:19 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-07-28 11:54:17 +00:00
|
|
|
- uses: bufbuild/buf-setup-action@v1.7.0
|
2022-06-22 08:28:23 +00:00
|
|
|
- uses: bufbuild/buf-lint-action@v1
|
2021-08-18 11:09:50 +00:00
|
|
|
with:
|
2022-06-22 08:28:23 +00:00
|
|
|
input: "proto"
|
|
|
|
|
|
|
|
break-check:
|
2021-08-18 11:09:50 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-03 17:07:19 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-07-28 11:54:17 +00:00
|
|
|
- uses: bufbuild/buf-setup-action@v1.7.0
|
2022-06-22 08:28:23 +00:00
|
|
|
- uses: bufbuild/buf-breaking-action@v1
|
2021-08-18 11:09:50 +00:00
|
|
|
with:
|
2022-06-22 08:28:23 +00:00
|
|
|
input: "proto"
|
|
|
|
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto"
|