mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 18:42:14 +00:00
30 lines
825 B
YAML
30 lines
825 B
YAML
name: Proto Check
|
|
# Protobuf runs buf (https://buf.build/) lint and check-breakage
|
|
# This workflow is only run when a file in the proto directory
|
|
# has been modified.
|
|
on:
|
|
workflow_dispatch: # allow running workflow manually
|
|
pull_request:
|
|
paths:
|
|
- "proto/**"
|
|
jobs:
|
|
proto-lint:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 4
|
|
steps:
|
|
- uses: actions/checkout@v2.4.0
|
|
- uses: bufbuild/buf-setup-action@v1.6.0
|
|
- uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: 'proto'
|
|
|
|
proto-breakage:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 4
|
|
steps:
|
|
- uses: actions/checkout@v2.4.0
|
|
- uses: bufbuild/buf-setup-action@v1.6.0
|
|
- uses: bufbuild/buf-breaking-action@v1
|
|
with:
|
|
against: 'https://github.com/tendermint/tendermint.git#branch=v0.35.x'
|