-
Notifications
You must be signed in to change notification settings - Fork 297
39 lines (36 loc) · 1.02 KB
/
protobuf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: protobuf
on:
pull_request:
jobs:
proto-lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: proto-lint
run: make proto-lint
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
proto-check-breaking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: proto-check-breaking
run: make proto-check-breaking