File tree Expand file tree Collapse file tree 1 file changed +13
-24
lines changed
Expand file tree Collapse file tree 1 file changed +13
-24
lines changed Original file line number Diff line number Diff line change @@ -65,31 +65,20 @@ jobs:
6565 fail-on : none
6666 target : ' packages/sharing-smart-contract/'
6767
68- - name : Start Anvil (Background)
69- run : |
70- anvil --host 0.0.0.0 --port 8545 --hardfork berlin --fork-url https://bellecour.iex.ec --chain-id 134 --gas-limit 6700000 --gas-price 0 &
71-
72- - name : Wait for Anvil to Start
73- run : |
74- timeout=30
75- interval=1
76- echo "Waiting for Anvil to start..."
77- for ((i=0; i<timeout; i++)); do
78- if nc -z localhost 8545; then
79- echo "Anvil is operational."
80- exit 0
81- fi
82- echo "Attempt $((i+1)) of $timeout: Anvil is not ready, waiting ${interval}s..."
83- sleep $interval
84- done
85- echo "Error: Anvil did not start within the timeout period."
86- exit 1
87-
88- - name : Run Hardhat Tests
89- uses : ambersun1234/hardhat-test-action@v1
68+ - name : Start Anvil
69+ uses : iExecBlockchainComputing/anvil-github-action@main
9070 with :
91- network : ' local-bellecour-fork'
92- rpc_url : ' http://127.0.0.1:8545'
71+ fork-url : " https://bellecour.iex.ec"
72+ anvil-port : " 8545"
73+ block-time : " 1"
74+ hardfork : " berlin"
75+ chain-id : " 134"
76+ gas-limit : " 6700000"
77+ gas-price : " 0"
78+
79+ - name : Hardhat Tests
80+ working-directory : packages/sharing-smart-contract
81+ run : npm run test -- --network ci-bellecour-fork
9382
9483 - name : Run Forge Tests
9584 working-directory : packages/sharing-smart-contract
You can’t perform that action at this time.
0 commit comments