|
24 | 24 | - name: Common setup |
25 | 25 | uses: ./.github/workflows/setup |
26 | 26 |
|
| 27 | + - name: Install foundry |
| 28 | + uses: foundry-rs/foundry-toolchain@v1 |
| 29 | + |
| 30 | + - name: Print forge version |
| 31 | + run: forge --version |
| 32 | + |
27 | 33 | - name: Set env |
28 | 34 | run: cp .env.example .env |
29 | 35 |
|
|
38 | 44 | GAS_MAX_FEE: 100 |
39 | 45 | NETWORK_STATE_FILE: "deployed-local.json" |
40 | 46 | NETWORK_STATE_DEFAULTS_FILE: "scripts/defaults/testnet-defaults.json" |
| 47 | + DG_DEPLOYMENT_ENABLED: false |
41 | 48 |
|
42 | 49 | - name: Finalize scratch deployment |
43 | 50 | run: yarn hardhat --network local run --no-compile scripts/utils/mine.ts |
|
46 | 53 | run: yarn test:integration:fork:local |
47 | 54 | env: |
48 | 55 | 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