mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
Merge pull request #1462 from maticnetwork/lmartins/ci-rpc-tests
RPC Tests on CI
This commit is contained in:
commit
be9ac0ce62
2 changed files with 19 additions and 0 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -250,6 +250,11 @@ jobs:
|
||||||
cd -
|
cd -
|
||||||
timeout 60m bash bor/integration-tests/smoke_test.sh
|
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
|
- name: Upload logs
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4.4.0
|
uses: actions/upload-artifact@v4.4.0
|
||||||
|
|
|
||||||
14
integration-tests/rpc_test.sh
Normal file
14
integration-tests/rpc_test.sh
Normal file
|
|
@ -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 -
|
||||||
Loading…
Reference in a new issue