mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
CI changes to accommodate Anvil
This commit is contained in:
parent
d3b4d34e37
commit
f767ec7f84
2 changed files with 14 additions and 7 deletions
6
.github/matic-cli-config.yml
vendored
6
.github/matic-cli-config.yml
vendored
|
|
@ -10,7 +10,8 @@ borDockerBuildContext: '../../bor'
|
||||||
heimdallDockerBuildContext: 'https://github.com/maticnetwork/heimdall.git#develop'
|
heimdallDockerBuildContext: 'https://github.com/maticnetwork/heimdall.git#develop'
|
||||||
|
|
||||||
genesisContractsBranch: master
|
genesisContractsBranch: master
|
||||||
contractsBranch: mardizzone/node-16
|
contractsRepo: https://github.com/0xPolygon/pos-contracts.git
|
||||||
|
contractsBranch: anvil-pos
|
||||||
|
|
||||||
blockTime:
|
blockTime:
|
||||||
- '2'
|
- '2'
|
||||||
|
|
@ -32,5 +33,6 @@ numOfErigonValidators: 0
|
||||||
numOfErigonSentries: 0
|
numOfErigonSentries: 0
|
||||||
numOfErigonArchiveNodes: 0
|
numOfErigonArchiveNodes: 0
|
||||||
|
|
||||||
ethURL: http://ganache:9545
|
ethURL: http://anvil:9545
|
||||||
ethHostUser: ubuntu
|
ethHostUser: ubuntu
|
||||||
|
mnemonic: 'clock radar mass judge dismiss just intact mind resemble fringe diary casino'
|
||||||
|
|
|
||||||
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
|
@ -228,6 +228,9 @@ jobs:
|
||||||
matic-cli/devnet/code/genesis-contracts/package-lock.json
|
matic-cli/devnet/code/genesis-contracts/package-lock.json
|
||||||
matic-cli/devnet/code/genesis-contracts/matic-contracts/package-lock.json
|
matic-cli/devnet/code/genesis-contracts/matic-contracts/package-lock.json
|
||||||
|
|
||||||
|
- name: Install Foundry
|
||||||
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
|
|
||||||
- name: Bootstrap devnet
|
- name: Bootstrap devnet
|
||||||
run: |
|
run: |
|
||||||
cd matic-cli
|
cd matic-cli
|
||||||
|
|
@ -245,12 +248,14 @@ jobs:
|
||||||
|
|
||||||
- name: Run smoke tests
|
- name: Run smoke tests
|
||||||
run: |
|
run: |
|
||||||
echo "Funding ganache accounts..."
|
|
||||||
timeout 10m bash bor/integration-tests/fund_ganache_accounts.sh
|
|
||||||
echo "Deposit 100 matic for each account to bor network"
|
echo "Deposit 100 matic for each account to bor network"
|
||||||
cd matic-cli/devnet/code/contracts
|
cd matic-cli/devnet/devnet
|
||||||
npm run truffle exec scripts/deposit.js -- --network development $(jq -r .root.tokens.MaticToken contractAddresses.json) 100000000000000000000
|
SCRIPT_ADDRESS=$(jq -r '.[0].address' signer-dump.json)
|
||||||
cd -
|
SCRIPT_PRIVATE_KEY=$(jq -r '.[0].priv_key' signer-dump.json)
|
||||||
|
cd ../code/pos-contracts
|
||||||
|
CONTRACT_ADDRESS=$(jq -r .root.tokens.MaticToken contractAddresses.json)
|
||||||
|
forge script scripts/matic-cli-scripts/Deposit.s.sol:MaticDeposit --rpc-url http://localhost:9545 --private-key $SCRIPT_PRIVATE_KEY --broadcast --sig "run(address,address,uint256)" $SCRIPT_ADDRESS $CONTRACT_ADDRESS 100000000000000000000
|
||||||
|
cd ../../../..
|
||||||
timeout 60m bash bor/integration-tests/smoke_test.sh
|
timeout 60m bash bor/integration-tests/smoke_test.sh
|
||||||
|
|
||||||
- name: Run RPC Tests
|
- name: Run RPC Tests
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue