-
Notifications
You must be signed in to change notification settings - Fork 128
79 lines (63 loc) · 1.99 KB
/
local-interchain.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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.19
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
# TOOO: put the python workflow here. (https://github.com/strangelove-ventures/interchaintest/pull/775)
rust-e2e:
name: rust e2e
needs: build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./local-interchain
strategy:
fail-fast: false
steps:
- name: checkout chain
uses: actions/checkout@v3
- 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 rust && cargo run --package localic-bin --bin localic-bin
- name: Cleanup
run: killall local-ic && exit 0