-
Notifications
You must be signed in to change notification settings - Fork 13
35 lines (33 loc) · 1.15 KB
/
clientrpc.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
name: ClientRPC Validation
on: [push, pull_request]
permissions:
contents: read
jobs:
clientrpc:
name: Check ClientRPC bindings
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 #v3.5.0
with:
go-version: '1.20'
- name: Check out source
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c #v3.3.0
- name: Install protoc
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 #v1.1.2
with:
version: '3.19.x'
- name: Install protolint
run: go install github.com/yoheimuta/protolint/cmd/[email protected]
- name: Lint proto files
run: protolint lint .
working-directory: clientrpc
- name: Rebuild the bindings
run: ./regen-clientrpc.sh
working-directory: clientrpc
- name: Verify rebuilding is not dirty
id: changes
uses: UnicornGlobal/has-changes-action@ea00e6f831a9e785271645729fa251907b314707 #v1.0.12
- name: Fail if there are changes in repo
if: steps.changes.outputs.changed == 1
run: exit 1