Itaylevyofficial/286 endtoendtests #3
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: Run E2E tests | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: [ "arm-linux" ] | |
env: | |
GOPRIVATE: "github.com/dymensionxyz/*" | |
GH_ACCESS_TOKEN: "${{ secrets.GH_ACCESS_TOKEN }}" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ | |
- name: Init a local rollapp | |
run: | | |
rm -rf ~/tmp/e2e_roller_config | |
go run . config init --home ~/tmp/e2e_roller_config --da mock endtoend_1-${{ github.run_number }} RAX | |
- name: Fund the RollApp addresses | |
run: | | |
HUB_SEQ_ADDR=$(go run . keys list --output json | jq -r '.hub_sequencer') | |
RELAYER_ROLLAPP_ADDR=$(go run . keys list --output json | jq -r '.relayer-rollapp-key') | |
/usr/local/bin/dymd tx bank multi-send local-user $HUB_SEQ_ADDR $RELAYER_ROLLAPP_ADDR 1udym --yes -b block --keyring-backend test --home ~/tmp/e2e_roller_config/local-hub | |
- name: Register the rollapp | |
run: | | |
go run . register --home ~/tmp/e2e_roller_config | |