Skip to content

feat(client)!: report why the client could not connect to the engine #2189

feat(client)!: report why the client could not connect to the engine

feat(client)!: report why the client could not connect to the engine #2189

Workflow file for this run

name: Proto Generate Check
on:
push:
branches:
- main
pull_request:
jobs:
check:
name: Check
runs-on: ubuntu-latest
permissions:
id-token: write
pull-requests: write
contents: write
env:
# Docker Hub credentials and the Docker Build Cloud builder are only
# available to same-repo events. Fork PRs run without secrets, so they
# fall back to a local buildx builder (slower, no shared cache).
IS_TRUSTED: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Hub login
if: env.IS_TRUSTED == 'true'
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
username: dockerpublicbot
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
with:
driver: ${{ env.IS_TRUSTED == 'true' && 'cloud' || 'docker-container' }}
endpoint: ${{ env.IS_TRUSTED == 'true' && 'docker/secrets-engine' || '' }}
install: true
- name: Check if protobuf generate is clean
run: |
make BUILDER=${{ steps.buildx.outputs.name }} proto-generate
if [[ -n "$(git status --porcelain)" ]]; then
echo "::error::Protobuf files need to be regenerated. Please run 'make proto-generate' and commit the changes."
git status
git diff
exit 1
fi