rpc tests on ci

This commit is contained in:
Lucca Martins 2025-02-24 17:19:20 -03:00
parent 732478ce5f
commit 41459a77c8
No known key found for this signature in database
GPG key ID: DC3D7F76BDAE23BF
2 changed files with 15 additions and 1 deletions

View file

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

View 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