diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e115a8955..6c2543b5f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -250,6 +250,11 @@ jobs: cd - timeout 60m bash bor/integration-tests/smoke_test.sh + - name: Run RPC Tests + run: | + echo "Starting RPC Tests..." + timeout 5m bash bor/integration-tests/rpc_test.sh + - name: Upload logs if: always() uses: actions/upload-artifact@v4.4.0 diff --git a/integration-tests/rpc_test.sh b/integration-tests/rpc_test.sh new file mode 100644 index 0000000000..00b4758f03 --- /dev/null +++ b/integration-tests/rpc_test.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +signersFile="matic-cli/devnet/devnet/signer-dump.json" +signersDump=$(jq . "$signersFile") +privKey=$(echo "$signersDump" | jq -r ".[0].priv_key") +rpc_url="http://localhost:8545" + +cd matic-cli/tests/rpc-tests + +go mod tidy +go run . --priv-key "$privKey" --rpc-url "$rpc_url" --log-req-res true + +cd - \ No newline at end of file