name: CI Proto on: push: branches: [main] paths: - 'packages/shared-proto/**' pull_request: branches: [main] paths: - 'packages/shared-proto/**' jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: bufbuild/buf-setup-action@v1 - name: buf lint working-directory: packages/shared-proto run: buf lint - name: buf breaking if: github.event_name == 'pull_request' working-directory: packages/shared-proto run: buf breaking --against https://github.com/${{ github.repository }}.git#branch=main,subdir=packages/shared-proto