Skip to content

Commit cf09fcc

Browse files
committed
gha integration tests
1 parent 50a374d commit cf09fcc

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/tests-grpc.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ env:
1313
RUST_VERSION: 'stable'
1414
EPOCH: 0
1515
GRPC_CURL_VERSION: '1.8.9'
16+
getTxSig: 39V8tR2Q8Ar3WwMBfVTRPFr7AakLHy5wp7skJNBL7ET6ARoikqc1TaMiuXEtHiNPLQKoeiVr5XnKH8QtjdonN4yM
17+
getBlock: 1
1618

1719
jobs:
1820
integration-tests:
@@ -118,9 +120,6 @@ jobs:
118120
wait-for: 5s
119121

120122
- name: Run HTTP tests
121-
env:
122-
getTxSig: 39V8tR2Q8Ar3WwMBfVTRPFr7AakLHy5wp7skJNBL7ET6ARoikqc1TaMiuXEtHiNPLQKoeiVr5XnKH8QtjdonN4yM
123-
getBlock: 1
124123
run: |
125124
126125
sleep 5s
@@ -160,3 +159,19 @@ jobs:
160159
{"jsonrpc":"2.0","id":1, "method":"getTransaction","params": ["${{ env.getTxSig }}"]}
161160
' -s | jq -r . | md5sum | grep -q 17d7cbf3d719b19ce3f4fe35a048f1fc || exit 1
162161
162+
- name: Run gRPC tests
163+
env:
164+
proto_flag: -proto ../old-faithful-proto/proto/old-faithful.proto
165+
run: |
166+
167+
grpcurl ${{ env.proto_flag }} -plaintext localhost:8999 OldFaithful.OldFaithful/GetVersion
168+
169+
grpcurl ${{ env.proto_flag }} -plaintext localhost:8999 OldFaithful.OldFaithful/GetSlot
170+
171+
grpcurl ${{ env.proto_flag }} -plaintext localhost:8999 -d '"slot": ${{ env.getBlock }}' OldFaithful.OldFaithful/GetBlock
172+
173+
grpcurl ${{ env.proto_flag }} -plaintext localhost:8999 -d '"slot": ${{ env.getBlock }}' OldFaithful.OldFaithful/GetBlockTime
174+
175+
grpcurl ${{ env.proto_flag }} -plaintext localhost:8999 -d '"signature": "${{ env.getTxSig }}" OldFaithful.OldFaithful/GetTransaction
176+
177+
grpcurl ${{ env.proto_flag }} -plaintext localhost:8999 OldFaithful.OldFaithful/GetFirstAvailableBlock

0 commit comments

Comments
 (0)