Skip to content

Merge branch 'develop' into feat/vaults #92

Merge branch 'develop' into feat/vaults

Merge branch 'develop' into feat/vaults #92

name: Integration Tests
on: [push]
jobs:
test_hardhat_integration_scratch:
name: Hardhat / Scratch
runs-on: ubuntu-latest
timeout-minutes: 120
services:
hardhat-node:
image: ghcr.io/lidofinance/hardhat-node:2.22.12-scratch
ports:
- 8555:8545
steps:
- uses: actions/checkout@v4
- name: Common setup
uses: ./.github/workflows/setup
- name: Set env
run: cp .env.example .env
- name: Run scratch deployment
run: ./scripts/dao-deploy.sh
env:
NETWORK: "local"
RPC_URL: "http://localhost:8555"
GENESIS_TIME: 1639659600 # just a random time
DEPLOYER: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" # first acc of default mnemonic "test test ..."
GAS_PRIORITY_FEE: 1
GAS_MAX_FEE: 100
NETWORK_STATE_FILE: "deployed-local.json"
NETWORK_STATE_DEFAULTS_FILE: "scripts/defaults/testnet-defaults.json"
- name: Finalize scratch deployment
run: yarn hardhat --network local run --no-compile scripts/utils/mine.ts
- name: Run integration tests
run: yarn test:integration:fork:local
env:
LOG_LEVEL: "debug"
INTEGRATION_WITH_CSM: "off"