|  | 
| 38 | 38 |           GAS_MAX_FEE: 100 | 
| 39 | 39 |           NETWORK_STATE_FILE: "deployed-local.json" | 
| 40 | 40 |           NETWORK_STATE_DEFAULTS_FILE: "scripts/defaults/testnet-defaults.json" | 
|  | 41 | +          DG_DEPLOYMENT_ENABLED: false | 
| 41 | 42 | 
 | 
| 42 | 43 |       - name: Finalize scratch deployment | 
| 43 | 44 |         run: yarn hardhat --network local run --no-compile scripts/utils/mine.ts | 
|  | 
| 46 | 47 |         run: yarn test:integration:fork:local | 
| 47 | 48 |         env: | 
| 48 | 49 |           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