1- name : Integration Tests On Upgrade
2- # For local testing of this scenario use ./scripts/dao-upgrade-and-test-on-fork.sh
1+ name : Integration Tests
32
43on : [push]
54
@@ -14,49 +13,14 @@ jobs:
1413 SKIP_CONTRACT_SIZE : true
1514 SKIP_INTERFACES_CHECK : true
1615
17- services :
18- hardhat-node :
19- image : ghcr.io/lidofinance/hardhat-node:2.26.0
20- ports :
21- - 8555:8545
22- env :
23- ETH_RPC_URL : " ${{ secrets.ETH_RPC_URL }}"
24- DONT_SET_CHAIN_ID : true
25- HARDFORK : " prague"
26-
2716 steps :
2817 - uses : actions/checkout@v4
2918
3019 - name : Common setup
3120 uses : ./.github/workflows/setup
3221
33- - name : Prepare network state file
34- run : cp deployed-mainnet.json deployed-mainnet-upgrade.json
35-
36- - name : Deploy upgrade
37- run : yarn upgrade:deploy
38- env :
39- RPC_URL : http://localhost:8555
40- DEPLOYER : " 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" # first acc of default mnemonic "test test ..."
41- GAS_PRIORITY_FEE : 1
42- GAS_MAX_FEE : 100
43- NETWORK_STATE_FILE : deployed-mainnet-upgrade.json
44- GENESIS_TIME : 1606824023 # needed only for TW upgrade
45-
46- - name : Mock Aragon voting
47- run : yarn upgrade:mock-voting
48- env :
49- RPC_URL : http://localhost:8555
50- NETWORK_STATE_FILE : deployed-mainnet-upgrade.json
51-
52- - name : Workaround for not updated state error when forking a fork
53- run : yarn hardhat --network local run --no-compile scripts/utils/mine.ts
54- env :
55- RPC_URL : http://localhost:8555
56-
5722 - name : Run integration tests
5823 run : yarn test:integration
5924 env :
60- RPC_URL : http://localhost:8555
61- LOG_LEVEL : debug
62- NETWORK_STATE_FILE : deployed-mainnet-upgrade.json
25+ RPC_URL : " ${{ secrets.ETH_RPC_URL }}"
26+ NETWORK_STATE_FILE : deployed-mainnet.json
0 commit comments