@@ -168,83 +168,83 @@ jobs:
168
168
pip install predeployed/dist/ima_predeployed-*.whl
169
169
python predeployed/scripts/generate_abi.py > data/ima-$VERSION-predeployed-abi.json
170
170
171
- test-integration :
172
- runs-on : ubuntu-latest
173
-
174
- env :
175
- working-directory : ./test
176
-
177
- steps :
178
- - uses : actions/checkout@v2
179
-
180
- - name : Get yarn cache directory path
181
- id : yarn-cache-dir-path
182
- run : echo "::set-output name=dir::$(yarn cache dir)"
183
-
184
- - uses : actions/cache@v2
185
- id : yarn-cache
186
- with :
187
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
188
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
189
- restore-keys : |
190
- ${{ runner.os }}-yarn-
191
-
192
- - uses : actions/cache@v2
193
- with :
194
- path : ~/.cache/pip
195
- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
196
- restore-keys : |
197
- ${{ runner.os }}-pip-
198
-
199
- - name : Set up Node
200
- uses : actions/setup-node@v2
201
- with :
202
- node-version : ' 16'
203
-
204
- - name : Set up Python
205
- uses : actions/setup-python@v2
206
- with :
207
- python-version : 3.8
208
-
209
- - name : Get IMA contracts
210
- run : |
211
- git clone https://github.com/skalenetwork/IMA.git --recursive-submodules
212
- cd IMA
213
- yarn install
214
- cd ..
171
+ test-integration :
172
+ runs-on : ubuntu-latest
215
173
216
- - name : Compile contracts
217
- working-directory : ./proxy
218
- run : |
219
- yarn install
220
-
221
- - name : Install all NPMs
222
- run : |
223
- yarn install
224
-
225
- - name : Start background ganache
226
- working-directory : ./proxy
227
- run : |
228
- npx ganache --miner.blockGasLimit 12000000 --logging.quiet --chain.allowUnlimitedContractSize --wallet.defaultBalance 2000000 --wallet.accountKeysPath ../test/accounts.json &
229
-
230
- - name : Prepare test (PY part)
231
- working-directory : ${{env.working-directory}}
232
- run : |
233
- python3 ../scripts/config_from_accounts.py accounts.json config.json
234
- pip3 install -r requirements.txt
235
-
236
- - name : Run test (PY part)
237
- working-directory : ${{env.working-directory}}
238
- run : |
239
- python3 test.py
240
-
241
- - name : Prepare test (JS part)
242
- working-directory : ${{env.working-directory}}
243
- run : |
244
- yarn install
245
-
246
- - name : Run test (JS part)
247
- working-directory : ${{env.working-directory}}
248
- run : |
249
- yarn test
174
+ env :
175
+ working-directory : ./test
176
+
177
+ steps :
178
+ - uses : actions/checkout@v2
179
+
180
+ - name : Get yarn cache directory path
181
+ id : yarn-cache-dir-path
182
+ run : echo "::set-output name=dir::$(yarn cache dir)"
183
+
184
+ - uses : actions/cache@v2
185
+ id : yarn-cache
186
+ with :
187
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
188
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
189
+ restore-keys : |
190
+ ${{ runner.os }}-yarn-
191
+
192
+ - uses : actions/cache@v2
193
+ with :
194
+ path : ~/.cache/pip
195
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
196
+ restore-keys : |
197
+ ${{ runner.os }}-pip-
198
+
199
+ - name : Set up Node
200
+ uses : actions/setup-node@v2
201
+ with :
202
+ node-version : ' 16'
203
+
204
+ - name : Set up Python
205
+ uses : actions/setup-python@v2
206
+ with :
207
+ python-version : 3.8
208
+
209
+ - name : Get IMA contracts
210
+ run : |
211
+ git clone https://github.com/skalenetwork/IMA.git --recursive-submodules
212
+ cd IMA
213
+ yarn install
214
+ cd ..
215
+
216
+ - name : Compile contracts
217
+ working-directory : ./proxy
218
+ run : |
219
+ yarn install
220
+
221
+ - name : Install all NPMs
222
+ run : |
223
+ yarn install
224
+
225
+ - name : Start background ganache
226
+ working-directory : ./proxy
227
+ run : |
228
+ npx ganache --miner.blockGasLimit 12000000 --logging.quiet --chain.allowUnlimitedContractSize --wallet.defaultBalance 2000000 --wallet.accountKeysPath ../test/accounts.json &
229
+
230
+ - name : Prepare test (PY part)
231
+ working-directory : ${{env.working-directory}}
232
+ run : |
233
+ python3 ../scripts/config_from_accounts.py accounts.json config.json
234
+ pip3 install -r requirements.txt
235
+
236
+ - name : Run test (PY part)
237
+ working-directory : ${{env.working-directory}}
238
+ run : |
239
+ python3 test.py
240
+
241
+ - name : Prepare test (JS part)
242
+ working-directory : ${{env.working-directory}}
243
+ run : |
244
+ yarn install
245
+
246
+ - name : Run test (JS part)
247
+ working-directory : ${{env.working-directory}}
248
+ run : |
249
+ yarn test
250
250
0 commit comments