github.com/cosmos/cosmos-sdk@v0.50.10/.github/workflows/proto.yml (about)

     1  name: Protobuf
     2  # Protobuf runs buf (https://buf.build/) lint and check-breakage
     3  # This workflow is only run when a .proto file has been changed
     4  on:
     5    pull_request:
     6      paths:
     7        - "proto/**"
     8  
     9  permissions:
    10    contents: read
    11  
    12  jobs:
    13    lint:
    14      runs-on: ubuntu-latest
    15      timeout-minutes: 5
    16      steps:
    17        - uses: actions/checkout@v3
    18        - uses: bufbuild/buf-setup-action@v1.21.0
    19        - uses: bufbuild/buf-lint-action@v1
    20          with:
    21            input: "proto"
    22  
    23    break-check:
    24      runs-on: ubuntu-latest
    25      steps:
    26        - uses: actions/checkout@v3
    27        - uses: bufbuild/buf-setup-action@v1.21.0
    28        - uses: bufbuild/buf-breaking-action@v1
    29          with:
    30            input: "proto"
    31            against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto"