adds a rust client #102
Workflow file for this run
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: Local Interchain | |
on: | |
pull_request: | |
# Ensures that only a single workflow per PR will run at a time. Cancels in-progress jobs if new commit is pushed. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
GO_VERSION: 1.21 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: build | |
defaults: | |
run: | |
working-directory: ./local-interchain | |
steps: | |
- name: Checkout interchaintest | |
uses: actions/checkout@v3 | |
- name: Setup go ${{ env.GO_VERSION }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: build local-interchain | |
run: go mod tidy && make install | |
- name: Upload localic artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: local-ic | |
path: ~/go/bin/local-ic | |
e2e-tests: | |
name: e2e tests | |
needs: build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./local-interchain | |
strategy: | |
matrix: | |
test: | |
- ["api_test", 8081] | |
- ["ibc_contract", 8082] | |
fail-fast: false | |
steps: | |
- name: checkout chain | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- run: pip install -r python/requirements.txt --break-system-packages | |
- 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 ${{ matrix.test[1] }} & | |
- name: Run Python Script | |
run: python3 ./python/${{ matrix.test[0] }}.py --api-port ${{ matrix.test[1] }} | |
- name: Cleanup | |
run: killall local-ic && exit 0 |