outline liquidvesting proto interface #511
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
branches-ignore: | |
- 'coinomics_v2' # NOTE: breaking changes are not really breaking as they are introduced in a module which was never deployed on chain | |
workflow_dispatch: | |
pull_request: | |
# paths: | |
# - "proto/**" | |
jobs: | |
proto-pass: | |
name: Proto Pass | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
- lint | |
- break-check | |
steps: | |
- run: exit 0 | |
build: | |
name: Check that proto builds and commited | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haqq-network/nix-action@master | |
with: | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- run: | | |
nix develop --impure --command ci-proto | |
lint: | |
name: Proto lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/[email protected] | |
- uses: bufbuild/buf-lint-action@v1 | |
with: | |
input: "proto" | |
break-check: | |
name: Proto break-check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/[email protected] | |
- 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" |