chore: split cli e2e into separate job (#4733)
### Description chore: split cli e2e into separate job before: ![image](https://github.com/user-attachments/assets/bb19243f-fc38-478e-b94c-f39020756964) after: ![image](https://github.com/user-attachments/assets/6ebcb783-1d07-4350-8823-5cc5df7c5c65) ### Drive-by changes na ### Related issues `yarn-test` step sometimes taking even 15 mins nowadays, half of which is e2e tests ### Backward compatibility yes ### Testing cipull/4740/head
parent
c3e9268f1e
commit
2cc51c1640
@ -0,0 +1,8 @@ |
||||
{ |
||||
"extensions": ["ts"], |
||||
"spec": ["src/**/*.e2e-test.ts"], |
||||
"node-option": [ |
||||
"experimental-specifier-resolution=node", |
||||
"loader=ts-node/esm" |
||||
] |
||||
} |
@ -1,24 +1,24 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
function cleanup() { |
||||
set +e |
||||
set +e |
||||
pkill -f anvil |
||||
rm -rf /tmp/anvil2 |
||||
rm -rf /tmp/anvil3 |
||||
rm -f ./test-configs/anvil/chains/anvil2/addresses.yaml |
||||
rm -f ./test-configs/anvil/chains/anvil3/addresses.yaml |
||||
set -e |
||||
set -e |
||||
} |
||||
|
||||
cleanup |
||||
|
||||
echo "Starting anvil2 and anvil3 chain" |
||||
echo "Starting anvil2 and anvil3 chain for E2E tests" |
||||
anvil --chain-id 31338 -p 8555 --state /tmp/anvil2/state --gas-price 1 > /dev/null & |
||||
anvil --chain-id 31347 -p 8600 --state /tmp/anvil3/state --gas-price 1 > /dev/null & |
||||
|
||||
echo "Running all tests" |
||||
yarn mocha --config .mocharc.json |
||||
echo "Running E2E tests" |
||||
yarn mocha --config .mocharc-e2e.json |
||||
|
||||
cleanup |
||||
|
||||
echo "Done all tests" |
||||
echo "Completed E2E tests" |
Loading…
Reference in new issue