Skip to content

Commit

Permalink
ci: add missing proto.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
tzdybal committed Oct 3, 2023
1 parent cb3e5d6 commit 36d200d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Check if the generated protobuf code matches the committed code
name: Protobuf
on:
workflow_call:

jobs:
proto-gen:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: "Check protobuf generated code matches committed code"
# yamllint disable
run: |
set -euo pipefail
make proto-gen
if ! git diff --stat --exit-code ; then
echo ">> ERROR:"
echo ">>"
echo ">> Protobuf generated code requires update (either tools or .proto files may have changed)."
echo ">> Ensure your tools are up-to-date, re-run 'make proto-gen' and update this PR."
echo ">>"
exit 1
fi
# yamllint enable

0 comments on commit 36d200d

Please sign in to comment.