Sovereign chain simulator adaptations #253
This file contains hidden or 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
name: Run multiple simulators | |
on: | |
push: | |
branches: [ main, feat/*, rc/* ] | |
pull_request: | |
branches: [ main, feat/*, rc/* ] | |
jobs: | |
build: | |
name: Run instances | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.20.7 | |
id: go | |
- name: Checkout mx-chain-go | |
uses: actions/checkout@v4 | |
with: | |
repository: 'multiversx/mx-chain-go' | |
ref: 'feat/chain-go-sdk' | |
path: 'mx-chain-go' | |
- name: Checkout mx-chain-simulator-go | |
uses: actions/checkout@v4 | |
with: | |
path: 'mx-chain-simulator-go' | |
- name: Run go mod tidy | |
run: go mod tidy | |
working-directory: mx-chain-simulator-go | |
- name: Get dependencies | |
run: | | |
cd mx-chain-simulator-go | |
go get -v -t -d ./... | |
if [ -f Gopkg.toml ]; then | |
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | |
dep ensure | |
fi | |
- name: Run multiple instances | |
run: | | |
cd mx-chain-simulator-go/cmd/chainsimulator | |
go build | |
./chainsimulator --sovereign --fetch-configs-and-close | |
python3 ../../scripts/run-multiple-instances/script.py |