-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from multiversx/pre-spica
Improved system tests
- Loading branch information
Showing
13 changed files
with
338 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Check with Mesh CLI | ||
name: Check with Mesh CLI (testnet) | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Check with Mesh CLI (localnet) | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pipx install multiversx-sdk-cli --force | ||
pip install -r ./requirements-dev.txt | ||
curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/master/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: Set up MultiversX localnet | ||
run: | | ||
mkdir -p ~/localnet && cd ~/localnet | ||
mxpy localnet setup --configfile=${GITHUB_WORKSPACE}/systemtests/localnet.toml | ||
# Start the localnet and store the PID | ||
nohup mxpy localnet start --configfile=${GITHUB_WORKSPACE}/systemtests/localnet.toml > localnet.log 2>&1 & echo $! > localnet.pid | ||
sleep 60 # Allow time for the localnet to start | ||
- name: Generate testdata | ||
run: | | ||
source .env | ||
PYTHONPATH=. python3 ./systemtests/generate_testdata_on_network.py setup --network localnet | ||
PYTHONPATH=. python3 ./systemtests/generate_testdata_on_network.py run --network localnet | ||
- name: check:data | ||
run: | | ||
source .env | ||
PYTHONPATH=. python3 ./systemtests/check_with_mesh_cli.py --mode=data --network=localnet | ||
- name: Stop MultiversX localnet | ||
if: success() || failure() | ||
run: | | ||
kill $(cat localnet.pid) || echo "Testnet already stopped" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Oops, something went wrong.