Skip to content

Commit adad353

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

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
- name: Common setup
2525
uses: ./.github/workflows/setup
2626

27+
- name: Install foundry
28+
uses: foundry-rs/foundry-toolchain@v1
29+
30+
- name: Print forge version
31+
run: forge --version
32+
2733
- name: Set env
2834
run: cp .env.example .env
2935

@@ -38,6 +44,7 @@ jobs:
3844
GAS_MAX_FEE: 100
3945
NETWORK_STATE_FILE: "deployed-local.json"
4046
NETWORK_STATE_DEFAULTS_FILE: "scripts/defaults/testnet-defaults.json"
47+
DG_DEPLOYMENT_ENABLED: false
4148

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

0 commit comments

Comments
 (0)