-
Notifications
You must be signed in to change notification settings - Fork 5
81 lines (70 loc) · 2.67 KB
/
scripts-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Run scripts
on:
pull_request:
branches:
- master
types: [opened, synchronize]
push:
branches:
- master
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
lint:
uses: ./.github/workflows/.lint.yml
scripts-tests:
needs: lint
runs-on: [self-hosted, linux, x64, ephemeral]
timeout-minutes: 3600
env:
SEED: test test test test test test test test test test test junk
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python virtualenv
run: pip install virtualenv
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install Poetry
uses: snok/install-poetry@v1
- run: npm install --global ganache-cli
- run: npm install --global yarn
- run: yarn
- run: poetry install
- run: npx hardhat node &
- run: sleep 2
# Just checking that the scripts run. More elaborated testing can be done later on.
- name: Deploy contracts Ethereum
env:
NUM_GENESIS_VALIDATORS: 3
AGG_KEY: "0xDEADBEEF"
GOV_KEY: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
COMM_KEY: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
REDEMPTION_DELAY: "172800"
GENESIS_STAKE: "1000000000000000000000"
DEPLOYER_ACCOUNT_INDEX: "0"
run: poetry run brownie run deploy_contracts --network hardhat
- name: Deploy contracts Arbitrum (mock)
env:
AGG_KEY: "0xDEADBEEF"
GOV_KEY: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
COMM_KEY: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
DEPLOYER_ACCOUNT_INDEX: "0"
run: poetry run brownie run deploy_contracts deploy_secondary_evm --network hardhat
- name: Emit all events
run: poetry run brownie run deploy_and all_events --network hardhat
- name: Deploy individual contracts
env:
REDEMPTION_DELAY: "120"
KEY_MANAGER_ADDRESS: "0xa16E02E87b7454126E5E10d957A927A7F5B5d2be"
FLIP_ADDRESS: "0x10C6E9530F1C1AF873a391030a1D9E8ed0630D26"
VAULT_ADDRESS: "0xB7A5bd0345EF1Cc5E66bf61BdeC17D2461fBd968"
run: |
poetry run brownie run deploy_new_contract deploy_vault --network hardhat &&
poetry run brownie run deploy_new_contract deploy_scGateway --network hardhat &&
poetry run brownie run deploy_new_contract deploy_keyManager --network hardhat &&
poetry run brownie run deploy_new_contract deploy_multicall --network hardhat
poetry run brownie run deploy_new_contract deploy_cfTester --network hardhat