Skip to content

feat(streamer): pump stream #73

feat(streamer): pump stream

feat(streamer): pump stream #73

Workflow file for this run

name: Protobuf Checks
# TODO: Re-enable this workflow after fixing the issues in #1890
# This workflow is disabled by default. To enable it, add the label 'enable-proto-checks' to your PR
on:
push:
branches:
- main
paths:
- "proto/**"
- "**/**.proto"
- "**/**.pb.go"
pull_request:
paths:
- "proto/**"
- "**/**.proto"
- "**/**.pb.go"
permissions:
contents: read
jobs:
protobuf-checks:
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'enable-proto-checks') }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Docker
uses: docker/setup-buildx-action@v2
with:
version: "latest"
- name: Run proto-format
run: make proto-format
- name: Run proto-gen
run: make proto-gen
- name: Check for uncommitted changes
run: |
CHANGES=$(git status --porcelain)
if [[ -n "$CHANGES" ]]; then
echo "Error: Uncommitted changes detected after running protobuf-checks:"
echo "$CHANGES"
exit 1
fi
buf-break-check:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: bufbuild/buf-setup-action@v1.50.0
- uses: bufbuild/buf-breaking-action@v1.1.4
with:
input: "proto"
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto"