diff --git a/.github/workflows/local-interchain.yaml b/.github/workflows/local-interchain.yaml index 10f58255a..157330847 100644 --- a/.github/workflows/local-interchain.yaml +++ b/.github/workflows/local-interchain.yaml @@ -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 diff --git a/local-interchain/bash/test.bash b/local-interchain/bash/test.bash index 5c7f6f764..869d507f9 100755 --- a/local-interchain/bash/test.bash +++ b/local-interchain/bash/test.bash @@ -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 @@ -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 \ No newline at end of file