Skip to content

Fix testnet config for system tests #240

Fix testnet config for system tests

Fix testnet config for system tests #240

name: Check with Mesh CLI (testnet)
on:
pull_request:
workflow_dispatch:
jobs:
test-testnet:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install -r ./requirements-dev.txt
curl -sSfL https://raw.githubusercontent.com/multiversx/coinbase-mesh-cli/refs/heads/install-rename/scripts/install.sh | sh -s -- -b "$HOME/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build
run: |
cd $GITHUB_WORKSPACE/cmd/rosetta && go build .
cd $GITHUB_WORKSPACE/systemtests && go build ./proxyToObserverAdapter.go
- name: check:construction (native)
run: |
python3 ./systemtests/check_with_mesh_cli.py --mode=construction-native --network=testnet --shard=0
sleep 30
env:
TESTNET_PROXY_URL: ${{ secrets.TESTNET_PROXY_URL }}
PYTHONPATH: .
- name: check:construction (custom)
run: |
python3 ./systemtests/check_with_mesh_cli.py --mode=construction-custom --network=testnet --shard=0
sleep 30
env:
TESTNET_PROXY_URL: ${{ secrets.TESTNET_PROXY_URL }}
PYTHONPATH: .
- name: Generate testdata (setup)
run: |
python3 ./systemtests/generate_testdata_on_network.py setup --network=testnet
env:
USERS_MNEMONIC: ${{ secrets.USERS_MNEMONIC }}
SPONSOR_SECRET_KEY: ${{ secrets.SPONSOR_SECRET_KEY }}
TESTNET_PROXY_URL: ${{ secrets.TESTNET_PROXY_URL }}
PYTHONPATH: .
- name: Generate testdata (run)
run: |
python3 ./systemtests/generate_testdata_on_network.py run --network=testnet
# Allow the blocks that hold the sample transactions to become "final".
sleep 30
env:
USERS_MNEMONIC: ${{ secrets.USERS_MNEMONIC }}
SPONSOR_SECRET_KEY: ${{ secrets.SPONSOR_SECRET_KEY }}
TESTNET_PROXY_URL: ${{ secrets.TESTNET_PROXY_URL }}
PYTHONPATH: .
- name: check:data
run: |
python3 ./systemtests/check_with_mesh_cli.py --mode=data --network=testnet --shard=0 --num-blocks=3000
env:
TESTNET_PROXY_URL: ${{ secrets.TESTNET_PROXY_URL }}
PYTHONPATH: .