-
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@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 #v5.0.0
with:
go-version: '1.22'
- name: Check out source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Install protoc
uses: arduino/setup-protoc@a8b67ba40b37d35169e222f3bb352603327985b6 #v2.1.0
with:
version: '23.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