feat: support buf #2
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: pull_request_checks | |
on: [pull_request] | |
jobs: | |
proto_checks: | |
name: proto lint, breaking changes detection | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/[email protected] | |
- name: Fetching base branch | |
run: | | |
git fetch -u origin ${{ github.base_ref }}:${{ github.base_ref }} | |
- name: Running linter, checking breaking changes | |
run: | | |
buf lint | |
buf breaking --against ".git#branch=${{ github.base_ref }}" |