mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
rpc tests on ci
This commit is contained in:
parent
732478ce5f
commit
41459a77c8
2 changed files with 15 additions and 1 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -202,7 +202,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: maticnetwork/matic-cli
|
repository: maticnetwork/matic-cli
|
||||||
ref: master
|
ref: lmartins/ci-rpc-tests # temporary for validation
|
||||||
path: matic-cli
|
path: matic-cli
|
||||||
|
|
||||||
- name: Install dependencies on Linux
|
- name: Install dependencies on Linux
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
9
integration-tests/rpc_test.sh
Normal file
9
integration-tests/rpc_test.sh
Normal file
|
|
@ -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
|
||||||
Loading…
Reference in a new issue