Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/bufbuild/buf-setup-action/releases) - [Commits](https://github.com/bufbuild/buf-setup-action/compare/v0.6.0...v0.7.0) --- updated-dependencies: - dependency-name: bufbuild/buf-setup-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
851 B
YAML
34 lines
851 B
YAML
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:
|
|
paths:
|
|
- 'proto/**'
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'proto/**'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: bufbuild/buf-setup-action@v0.7.0
|
|
- uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: 'proto'
|
|
|
|
break-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: bufbuild/buf-setup-action@v0.7.0
|
|
- uses: bufbuild/buf-breaking-action@v1
|
|
with:
|
|
input: 'proto'
|
|
against: 'https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto'
|