Skip to content

Commit

Permalink
bash e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Aug 10, 2024
1 parent 046d0fa commit 5ca9022
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/local-interchain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,47 @@ jobs:
name: local-ic
path: ~/go/bin/local-ic

bash-e2e:
name: bash
needs: build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./local-interchain
strategy:
fail-fast: false

steps:
- name: checkout chain
uses: actions/checkout@v4

- name: Install latest toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Download Tarball Artifact
uses: actions/download-artifact@v3
with:
name: local-ic
path: /tmp

- name: Make local-ic executable
run: chmod +x /tmp/local-ic

- name: Start background ibc local-interchain
run: /tmp/local-ic start juno_ibc --api-port 8080 &

- name: Run Rust Script
run: |
cd bash
sh ./test.sh
- name: Cleanup
run: killall local-ic && exit 0

rust-e2e:
name: rust
Expand Down
6 changes: 2 additions & 4 deletions local-interchain/bash/test.bash
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/bash

# local-ic start base_ibc
# local-ic start juno_ibc

source ./source.bash
# source <(curl -s https://github.com/strangelove-ventures/interchaintest/tree/main/local-interchain/bash/source.bash)


API_ADDR="http://localhost:8080"

# Set standard interaction defaults
Expand Down Expand Up @@ -71,7 +69,7 @@ exitIfEmpty "$FULL_NODE_ADDED" "FULL_NODE_ADDED"
# Stop the relayer
ICT_RELAYER_STOP $API_ADDR "localjuno-1"

# Kills all containers, not the local-ic process. Use `killall local-ic` to kill that as well
ICT_KILL_ALL $API_ADDR "localjuno-1"

killall local-ic
exit 0

0 comments on commit 5ca9022

Please sign in to comment.