Browse Source

Adopt Cosmos SDK's approach to Protobuf linting and breakage checking in CI

Signed-off-by: Thane Thomson <connect@thanethomson.com>
pull/7975/head
Thane Thomson 3 years ago
parent
commit
7e47aa4c7e
No known key found for this signature in database GPG Key ID: 19811391D676EE45
1 changed files with 17 additions and 11 deletions
  1. +17
    -11
      .github/workflows/proto-check.yml

+ 17
- 11
.github/workflows/proto-check.yml View File

@ -6,19 +6,25 @@ on:
workflow_dispatch: # allow running workflow manually
pull_request:
paths:
- "proto/*"
- "proto/**"
jobs:
proto-lint:
lint:
runs-on: ubuntu-latest
timeout-minutes: 4
timeout-minutes: 5
steps:
- uses: actions/checkout@v2.4.0
- name: lint
run: make proto-lint
proto-breakage:
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1.0.0
- uses: bufbuild/buf-lint-action@v1
with:
input: 'proto'
break-check:
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- uses: actions/checkout@v2.4.0
- name: check-breakage
run: make proto-check-breaking-ci
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1.0.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'

Loading…
Cancel
Save