Skip to content

Commit

Permalink
running the init command within a screen session to solve key generat…
Browse files Browse the repository at this point in the history
…ions bug
  • Loading branch information
ItayLevyOfficial committed Aug 20, 2023
1 parent 577b8c8 commit aba2b9b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,21 @@ jobs:
go-version: 1.19.10
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/

- name: Init a local rollapp
- name: Init a local rollapp within screen
run: |
rm -rf $ROLLER_CONFIG_PATH
echo "Executing: go run . config init --home $ROLLER_CONFIG_PATH --da mock $ROLLAPP_ID RAX --hub local --no-output"
go run . config init --home $ROLLER_CONFIG_PATH --da mock $ROLLAPP_ID RAX --hub local --no-output < /dev/null
# Start a new detached screen session named "rollapp_init"
screen -dmS rollapp_init
# Send the commands to be executed in the screen session
screen -S rollapp_init -X stuff "rm -rf $ROLLER_CONFIG_PATH\n"
screen -S rollapp_init -X stuff "echo 'Executing: go run . config init --home $ROLLER_CONFIG_PATH --da mock $ROLLAPP_ID RAX --hub local --no-output'\n"
screen -S rollapp_init -X stuff "go run . config init --home $ROLLER_CONFIG_PATH --da mock $ROLLAPP_ID RAX --hub local --no-output\n"
# Wait a bit for the command to execute. Adjust this sleep time as necessary
sleep 10
# Kill the screen session after the command is done
screen -S rollapp_init -X quit
- name: Fund the RollApp addresses
run: |
Expand Down

0 comments on commit aba2b9b

Please sign in to comment.