-
Notifications
You must be signed in to change notification settings - Fork 47
162 lines (159 loc) · 5.07 KB
/
integration-tests.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: Integration tests
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
with:
working-directory: integration-tests/
- name: Build Integration Tests
run: cd integration_tests && cargo check --all --verbose
native_token:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
continue-on-error: true
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Prune cache to keep the size down
run: docker builder prune -af && docker system prune -af
- name: Test the native token features of the EVM
run: tests/all-up-test.sh NATIVE_TOKEN
lockup:
runs-on: ubuntu-latest
needs: native_token
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Lock up the chain and ensure funds are not transferrable
run: tests/all-up-test.sh LOCKUP
env:
NO_IMAGE_BUILD: True
microtx_fees:
runs-on: ubuntu-latest
needs: native_token
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Assert that fees are collected by the microtx module
run: tests/all-up-test.sh MICROTX_FEES
env:
NO_IMAGE_BUILD: True
erc20_conversion:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Test the erc20 module's token conversion functionality
run: tests/all-up-test.sh ERC20_CONVERSION
env:
NO_IMAGE_BUILD: True
liquid_accounts:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Test the microtx module's liquid infrastructure accounts functions
run: tests/all-up-test.sh LIQUID_ACCOUNTS
env:
NO_IMAGE_BUILD: True
ica_host:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Test the interchain accounts host module on Althea-L1
run: tests/all-up-test.sh ICA_HOST
env:
NO_IMAGE_BUILD: True
ONBOARDING_DEFAULT_PARAMS:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Starts the onboarding module with the default params
run: tests/all-up-test.sh ONBOARDING_DEFAULT_PARAMS
env:
NO_IMAGE_BUILD: True
ONBOARDING_DISABLED_WHITELISTED:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Starts the onboarding module disabled with a whitelisted channel
run: tests/all-up-test.sh ONBOARDING_DISABLED_WHITELISTED
env:
NO_IMAGE_BUILD: True
ONBOARDING_DISABLE_AFTER:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Starts the onboarding module permissively, but disables it after a transfer
run: tests/all-up-test.sh ONBOARDING_DISABLE_AFTER
env:
NO_IMAGE_BUILD: True
ONBOARDING_DELIST_AFTER:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Starts the onboarding module permissively, but removes the channel from the whilelist after a transfer
run: tests/all-up-test.sh TEST_NAME
env:
NO_IMAGE_BUILD: True