File tree Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 27
27
GO_VERSION : 1.19.2
28
28
29
29
jobs :
30
- rpc-check :
31
- name : RPC check
32
- runs-on : ubuntu-latest
33
- steps :
34
- - name : git checkout
35
- uses : actions/checkout@v3
30
+ rpc-check :
31
+ name : RPC check
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : git checkout
35
+ uses : actions/checkout@v3
36
36
37
- - name : Generate RPC stubs and check REST annotations
38
- run : make rpc-check
37
+ - name : Generate RPC stubs and check REST annotations
38
+ run : make rpc-check
39
39
40
40
# #######################
41
41
# lint code
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ rpc-format:
121
121
122
122
rpc-check : rpc
123
123
@$(call print, "Verifying protos.")
124
- cd ./pricesrpc; ../scripts /check-rest-annotations.sh
124
+ cd ./pricesrpc; ../pricesrpc /check-rest-annotations.sh
125
125
if test -n " $$ (git status --porcelain)" ; then echo " Protos not properly formatted or not compiled with correct version" ; git status; git diff; exit 1; fi
126
126
127
127
clean :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ for proto in $( find . -name " *.proto" ) ; do
4
+ for rpc in $( awk ' / rpc /{print $2}' " $proto " ) ; do
5
+ yaml=${proto%% .proto} .yaml
6
+ if ! grep -q " $rpc " " $yaml " ; then
7
+ echo " RPC $rpc not added to $yaml file"
8
+ exit 1
9
+ fi
10
+ done
11
+ done
You can’t perform that action at this time.
0 commit comments