Skip to content

Commit ea79118

Browse files
committed
fix: ci workflow for dual governance scratch deployment
1 parent 0b72bb7 commit ea79118

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/tests-integration-scratch.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
GAS_MAX_FEE: 100
3939
NETWORK_STATE_FILE: "deployed-local.json"
4040
NETWORK_STATE_DEFAULTS_FILE: "scripts/defaults/testnet-defaults.json"
41+
DG_DEPLOYMENT_ENABLED: false
4142

4243
- name: Finalize scratch deployment
4344
run: yarn hardhat --network local run --no-compile scripts/utils/mine.ts
@@ -46,3 +47,58 @@ jobs:
4647
run: yarn test:integration:fork:local
4748
env:
4849
INTEGRATION_WITH_CSM: "off"
50+
51+
test_hardhat_integration_scratch_with_dg:
52+
name: Hardhat / Scratch with DG
53+
runs-on: ubuntu-latest
54+
timeout-minutes: 120
55+
env:
56+
SKIP_GAS_REPORT: true
57+
SKIP_CONTRACT_SIZE: true
58+
SKIP_INTERFACES_CHECK: true
59+
60+
services:
61+
hardhat-node:
62+
image: ghcr.io/lidofinance/hardhat-node:2.26.0-scratch
63+
ports:
64+
- 8555:8545
65+
66+
steps:
67+
- uses: actions/checkout@v4
68+
69+
- name: Common setup
70+
uses: ./.github/workflows/setup
71+
72+
- name: Install foundry
73+
uses: foundry-rs/foundry-toolchain@v1
74+
75+
- name: Print forge version
76+
run: forge --version
77+
78+
- name: Set env
79+
run: cp .env.example .env
80+
81+
- name: Run scratch deployment
82+
run: ./scripts/dao-deploy.sh
83+
env:
84+
NETWORK: "local"
85+
RPC_URL: "http://localhost:8555"
86+
GENESIS_TIME: 1639659600 # just a random time
87+
DEPLOYER: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" # first acc of default mnemonic "test test ..."
88+
GAS_PRIORITY_FEE: 1
89+
GAS_MAX_FEE: 100
90+
NETWORK_STATE_FILE: "deployed-local.json"
91+
NETWORK_STATE_DEFAULTS_FILE: "scripts/defaults/testnet-defaults.json"
92+
DG_DEPLOYMENT_ENABLED: true
93+
DG_DEPLOYER_ACCOUNT_NETWORK_NAME: local
94+
95+
- name: Finalize scratch deployment
96+
run: yarn hardhat --network local run --no-compile scripts/utils/mine.ts
97+
98+
- name: Run integration tests
99+
run: yarn test:integration:fork:local
100+
env:
101+
INTEGRATION_WITH_CSM: "off"
102+
103+
- name: Run Dual Governance regression tests
104+
run: yarn dg:regression-tests

0 commit comments

Comments
 (0)