File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed
Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Core tests
2+
3+ on :
4+ push :
5+ branches-ignore :
6+ - " master"
7+ - " feat/tests"
8+ - " feat/rc3"
9+ - " feat/rc2"
10+ - " feat/rc1"
11+ - " feat/next-vote"
12+ schedule :
13+ - cron : " 0 0 * * TUE"
14+ jobs :
15+ run-tests :
16+ name : Run core repo integration tests
17+ runs-on : " ubuntu-latest"
18+ timeout-minutes : 60
19+
20+ services :
21+ hardhat-node :
22+ image : ghcr.io/lidofinance/hardhat-node:2.24.3
23+ ports :
24+ - 8555:8545
25+ env :
26+ ETH_RPC_URL : " https://mainnet.infura.io/v3/${{ secrets.WEB3_INFURA_PROJECT_ID }}"
27+
28+ dev-container :
29+ image : ghcr.io/lidofinance/scripts:v18
30+ env :
31+ FORK_RPC_URL : " http://hardhat-node:8545"
32+ options : >-
33+ --health-cmd="test -f /root/inited || exit 1"
34+ --health-interval=10s
35+ --health-retries=60
36+ --health-start-period=20s
37+ --health-timeout=1s
38+
39+ steps :
40+ - name : Check that the fork is ready
41+ shell : bash
42+ run : timeout 30 bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/$0/$1; do sleep 1; done' 127.0.0.1 8555
43+
44+ - name : Run core tests
45+ run : docker exec dev-container make test-core
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ test-2/3:
3636test-3/3 :
3737 $(call run_3rd_test,brownie test -k 'not test_sanity_checks.py and not test_staking_router_stake_distribution.py' --network mfh-3)
3838
39+ test-core :
40+ cd /root/lido-core && yarn test:integration
41+
3942docker :
4043 docker exec -it scripts /bin/bash
4144
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33if [ ! -e /root/inited ]; then
4- touch /root/inited
54
65 #
76 # Initialize scripts repository
@@ -31,4 +30,6 @@ if [ ! -e /root/inited ]; then
3130 CI=true yarn --immutable
3231 yarn compile
3332 cp .env.example .env
33+
34+ touch /root/inited
3435fi
You can’t perform that action at this time.
0 commit comments