Merge pull request #1462 from maticnetwork/lmartins/ci-rpc-tests

RPC Tests on CI
This commit is contained in:
Lucca Martins 2025-02-25 12:12:55 -03:00 committed by GitHub
commit be9ac0ce62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View file

@ -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

View 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 -