Skip to content

Commit 2fa3a32

Browse files
committed
gha integration tests
1 parent 8ca007b commit 2fa3a32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/tests-grpc.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,30 +133,30 @@ jobs:
133133
echo "getSlot"
134134
curl localhost:7999 -H "Content-Type: application/json" -d '
135135
{"jsonrpc":"2.0","id":1, "method":"getSlot"}
136-
' -s | jq -r .result
136+
' -s | jq -r .result | grep -q 431999 || exit 1
137137
138138
echo "getGenesisHash"
139139
curl localhost:7999 -H "Content-Type: application/json" -d '
140140
{"jsonrpc":"2.0","id":1, "method":"getGenesisHash"}
141-
' -s | jq -r .result
141+
' -s | jq -r .result | grep -q "5eykt4UsFv8P8NJdTREpY1vzqKqZKvLmJpnLXtQbfky" || exit 1
142142
143143
echo "getFirstAvailableBlock"
144144
curl localhost:7999 -H "Content-Type: application/json" -d '
145145
{"jsonrpc":"2.0","id":1, "method":"getFirstAvailableBlock"}
146-
' -s | jq -r .result
146+
' -s | jq -r .result | grep -q 0 || exit 1
147147
148148
echo "getBlock"
149149
curl localhost:7999 -H "Content-Type: application/json" -d '
150150
{"jsonrpc":"2.0","id":1, "method":"getBlock","params": [${{ env.getBlock }}]}
151-
' -s | jq -r .
151+
' -s | jq -r .
152152
153153
echo "getBlockTime"
154154
curl localhost:7999 -H "Content-Type: application/json" -d '
155155
{"jsonrpc":"2.0","id":1, "method":"getBlockTime","params": [${{ env.getBlock }}]}
156-
' -s | jq -r .
156+
' -s | jq -r .result | grep -q null || exit 1
157157
158158
echo "getTransaction"
159159
curl localhost:7999 -H "Content-Type: application/json" -d '
160160
{"jsonrpc":"2.0","id":1, "method":"getTransaction","params": ["${{ env.getTxSig }}"]}
161-
' -s | jq -r .
161+
' -s | jq -r . | md5sum | grep -q 0a4a47cd17dc19911a638f72f77b18cd || exit 1
162162

0 commit comments

Comments
 (0)