diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e969f5261..475c371a25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -202,7 +202,7 @@ jobs: uses: actions/checkout@v4 with: repository: maticnetwork/matic-cli - ref: master + ref: lmartins/ci-rpc-tests # temporary for validation path: matic-cli - name: Install dependencies on Linux @@ -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..9cfce3af7a --- /dev/null +++ b/integration-tests/rpc_test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +signersDump=$(jq . $signersFile) +privKey=$(echo "$signersDump" | jq -r ".[0].priv_key") +rpc_url="http://localhost:8545" + + +go run matic-cli/tests/rpc-tests/main.go --priv-key $privKey --rpc-url $rpc_url \ No newline at end of file