added docker compose and check if proxy is up. #20
Workflow file for this run
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
name: Build local testnet | |
on: | |
pull_request: | |
branches: [ master, rc/* ] | |
types: [opened, ready_for_review] | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
runs-on: [ubuntu-latest] | |
runs-on: ${{ matrix.runs-on }} | |
name: Build | |
steps: | |
- name: Set up Go 1.20.7 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.7 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Check out mx-deploy-go | |
uses: actions/checkout@v4 | |
with: | |
repository: multiversx/mx-chain-deploy-go | |
path: mx-chain-deploy-go | |
- name: Generate config | |
run: | | |
cd ${GITHUB_WORKSPACE}/scripts/docker-testnet | |
export TESTNETDIR=${GITHUB_WORKSPACE}/docker-testnet | |
./prepare.sh | |
- name: Docker compose | |
run: | | |
docker compose up -d | |
sleep 30s | |
curl -X POST http://localhost:7950/about |