mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
CI changes to accommodate Anvil
This commit is contained in:
commit
12bd028cde
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'
|
||||
|
||||
genesisContractsBranch: master
|
||||
contractsBranch: mardizzone/node-16
|
||||
contractsRepo: https://github.com/0xPolygon/pos-contracts.git
|
||||
contractsBranch: anvil-pos
|
||||
|
||||
blockTime:
|
||||
- '2'
|
||||
|
|
@ -32,5 +33,6 @@ numOfErigonValidators: 0
|
|||
numOfErigonSentries: 0
|
||||
numOfErigonArchiveNodes: 0
|
||||
|
||||
ethURL: http://ganache:9545
|
||||
ethURL: http://anvil:9545
|
||||
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/matic-contracts/package-lock.json
|
||||
|
||||
- name: Install Foundry
|
||||
uses: foundry-rs/foundry-toolchain@v1
|
||||
|
||||
- name: Bootstrap devnet
|
||||
run: |
|
||||
cd matic-cli
|
||||
|
|
@ -245,12 +248,14 @@ jobs:
|
|||
|
||||
- name: Run smoke tests
|
||||
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"
|
||||
cd matic-cli/devnet/code/contracts
|
||||
npm run truffle exec scripts/deposit.js -- --network development $(jq -r .root.tokens.MaticToken contractAddresses.json) 100000000000000000000
|
||||
cd -
|
||||
cd matic-cli/devnet/devnet
|
||||
SCRIPT_ADDRESS=$(jq -r '.[0].address' signer-dump.json)
|
||||
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
|
||||
|
||||
- name: Run RPC Tests
|
||||
|
|
|
|||
Loading…
Reference in a new issue