cosmos-sdk/.github/workflows/proto.yml
dependabot[bot] 6d0507a3a8
build(deps): Bump actions/checkout from 5 to 6 (#25593)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-21 11:06:01 -05:00

32 lines
841 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/**"
permissions:
contents: read
jobs:
lint:
runs-on: depot-ubuntu-22.04-4
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- uses: bufbuild/buf-setup-action@v1.50.0
- uses: bufbuild/buf-lint-action@v1
with:
input: "proto"
break-check:
runs-on: depot-ubuntu-22.04-4
steps:
- uses: actions/checkout@v6
- uses: bufbuild/buf-setup-action@v1.50.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"