Prepare configuration for secondary bridge #303
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: start-stop network test | |
on: | |
pull_request: | |
env: | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
permissions: | |
contents: read | |
jobs: | |
config: | |
strategy: | |
matrix: | |
settings: | |
# example: | |
# - config_file: example_config.hcl | |
# propose_upgrade: true | |
- config_file: config.hcl | |
- config_file: config_clef.hcl | |
- config_file: config_external_postgres.hcl | |
- config_file: config_visor_mixed.hcl | |
propose_upgrade: true | |
- config_file: config_data_node_snapshot.hcl | |
# TODO: Needs to be fixed. Issue: https://github.com/vegaprotocol/vegacapsule/issues/291 | |
# - config_visor_only.hcl | |
name: ${{ matrix.settings.config_file }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.5' | |
- uses: actions/checkout@v3 | |
- name: Build binary | |
env: | |
GO111MODULE: on | |
run: go build -o vegacapsule . | |
- name: Start nomad | |
run: | | |
export GOBIN=$(go env GOPATH)/bin | |
./vegacapsule nomad& | |
- name: Wait for nomad | |
uses: cygnetdigital/wait_for_response@v2.0.0 | |
with: | |
url: 'http://localhost:4646/ui/' | |
responseCode: '200,302,307' | |
timeout: 30000 | |
interval: 1000 | |
- name: Start the node | |
run: | | |
export GOBIN=$(go env GOPATH)/bin | |
export PATH=$GOBIN:$PATH | |
./vegacapsule install-bins --install-path $GOBIN | |
./vegacapsule network bootstrap --config-path ./net_confs/${{ matrix.settings.config_file }} ; | |
sleep 5; | |
- name: List nodes | |
run: | | |
export GOBIN=$(go env GOPATH)/bin | |
export PATH=$GOBIN:$PATH | |
./vegacapsule nodes ls; | |
- name: Network propose upgrade | |
if: ${{ matrix.settings.propose_upgrade }} | |
run: | | |
export GOBIN=$(go env GOPATH)/bin | |
export PATH=$GOBIN:$PATH | |
# version can be non-existing one, just submit proposal | |
./vegacapsule nodes protocol-upgrade \ | |
--propose \ | |
--release-tag v99.99.9 \ | |
--template-path "net_confs/node_set_templates/default/visor_run.tmpl" \ | |
--height 5500 \ | |
--force | |
- name: Network destroy | |
run: | | |
export GOBIN=$(go env GOPATH)/bin | |
export PATH=$GOBIN:$PATH | |
./vegacapsule network destroy; |