-
Notifications
You must be signed in to change notification settings - Fork 4
139 lines (110 loc) · 4.24 KB
/
interchaintest.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: interchaintest
permissions:
contents: write
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
env:
GO_VERSION: 1.21
jobs:
compile-contracts:
name: compile wasm contract with optimizer
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v3
- name: install latest cargo nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.71.0
target: wasm32-unknown-unknown
override: true
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install tar for cache
run: |
sudo apt-get update
sudo apt-get install tar
- name: set up cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: build artifacts
timeout-minutes: 40
run: |
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/optimizer:0.16.0
- name: upload contracts
uses: actions/upload-artifact@v3
with:
name: contracts
path: artifacts/
swap-covenant:
needs: compile-contracts
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: contracts
path: artifacts/
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: setup just
uses: extractions/setup-just@v1
- name: swap covenant
run: mkdir interchaintest/swap/wasms && cp -R artifacts/*.wasm interchaintest/swap/wasms && just local-e2e swap TestTokenSwap
# todo: figure out how to run ci with custom stride image
# single-party-pol-covenant:
# needs: compile-contracts
# runs-on: ubuntu-latest
# steps:
# - name: checkout repository
# uses: actions/checkout@v3
# - uses: actions/download-artifact@v3
# with:
# name: contracts
# path: artifacts/
# - name: Set up Go ${{ env.GO_VERSION }}
# uses: actions/setup-go@v4
# with:
# go-version: ${{ env.GO_VERSION }}
# - name: setup just
# uses: extractions/setup-just@v1
# - name: single party pol covenant
# run: mkdir interchaintest/single-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/single-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/single-party-pol/wasms && just local-e2e single-party-pol
two-party-pol-covenant:
needs: compile-contracts
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: contracts
path: artifacts/
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: setup just
uses: extractions/setup-just@v1
- name: two party POL native & interchain parties
run: mkdir -p interchaintest/two-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/two-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/two-party-pol/wasms && just local-e2e two-party-pol TestTwoPartyNativePartyPol
- name: two party POL two interchain parties
run: mkdir -p interchaintest/two-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/two-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/two-party-pol/wasms && just local-e2e two-party-pol TestTwoPartyPol