Skip to content

Commit

Permalink
move spawn bin into path
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 12, 2024
1 parent 1681aa1 commit 876e167
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/reusable-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ jobs:
uses: actions/download-artifact@master
with:
name: spawn
path: /home/runner/go/bin

- name: Spawn Permission
run: chmod +x ./spawn && ls -l
- name: Spawn Permission # put into path
run: chmod +x /home/runner/go/bin/spawn && ls -l

# === Chain Creation & Validation ===
- name: Spawn Gen - '${{inputs.id}}'
Expand All @@ -88,6 +89,8 @@ jobs:
cd mychain
${{ inputs.start-chain-cmd }}
# Runs the unit test after the chain is started in the background
# This way the work is parallelized
- name: Unit Test - '${{inputs.id}}'
run: |
cd mychain
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/spawn-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@ jobs:
uses: ./.github/workflows/reusable-e2e.yaml
with:
id: Proof of Stake
spawn-create-cmd: ./spawn new mychain --consensus=proof-of-stake --bypass-prompt --bech32=prefix --bin=appd --no-git --org=rollchains-org --denom=uroll --debug --log-level=debug
spawn-create-cmd: spawn new mychain --consensus=proof-of-stake --bypass-prompt --bech32=prefix --bin=appd --no-git --org=rollchains-org --denom=uroll --debug --log-level=debug
start-chain-cmd: HOME_DIR="~/.simapp" CHAIN_ID="localchain-1" BLOCK_TIME="2000ms" CLEAN=true sh scripts/test_node.sh &

proof-of-authority:
needs: build-spawn
uses: ./.github/workflows/reusable-e2e.yaml
with:
id: Proof of Authority
spawn-create-cmd: ./spawn new mychain --consensus=proof-of-authority --bypass-prompt --bech32=cosmos --bin=appd --no-git --org=rollchains-org --denom=uroll --debug --log-level=debug
spawn-create-cmd: spawn new mychain --consensus=proof-of-authority --bypass-prompt --bech32=cosmos --bin=appd --no-git --org=rollchains-org --denom=uroll --debug --log-level=debug
start-chain-cmd: HOME_DIR="~/.simapp" CHAIN_ID="localchain-1" BLOCK_TIME="2000ms" CLEAN=true sh scripts/test_node.sh &

normal-ics:
needs: build-spawn
uses: ./.github/workflows/reusable-e2e.yaml
with:
id: ICS - Cosmos Hub
spawn-create-cmd: ./spawn new mychain --consensus=ics --bin=appd --bypass-prompt --bech32=roll --no-git --org=rollchains-org --denom=uroll --debug --log-level=debug
spawn-create-cmd: spawn new mychain --consensus=ics --bin=appd --bypass-prompt --bech32=roll --no-git --org=rollchains-org --denom=uroll --debug --log-level=debug
start-chain-cmd: HOME_DIR="~/.icsnetwork" CHAIN_ID="localchain-2" CLEAN=true BLOCK_TIME="2000ms" sh scripts/test_ics_node.sh &

ics-with-user-modules:
Expand All @@ -76,5 +76,5 @@ jobs:
with:
id: ICS - Module Plugins
spawn-create-cmd: spawn new mychain --consensus=ics --bin=appd --bypass-prompt --bech32=roll --disabled=explorer --org=rollchains-org --denom=uroll --debug --log-level=debug
spawn-extra-cmd: cd mychain && ../spawn module new aaaaaa && make proto-gen
spawn-extra-cmd: cd mychain && spawn module new aaaaaa && make proto-gen
start-chain-cmd: HOME_DIR="~/.icsnetwork" CHAIN_ID="localchain-2" CLEAN=true BLOCK_TIME="2000ms" sh scripts/test_ics_node.sh &

0 comments on commit 876e167

Please sign in to comment.