-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: run integration tests on CI (#985)
* ci: run integration tests on CI * test: increase anvil's time for L1 execution * ci: install Starknet Devnet in test workflow * ci: cache cargo
- Loading branch information
Showing
7 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
PIDS=() | ||
|
||
function start_node() { | ||
yarn node:"$1" > /dev/null 2>&1 & | ||
PIDS+=($!) | ||
echo "Started $1 with PID $!" | ||
} | ||
|
||
function cleanup() { | ||
echo "Cleaning up..." | ||
for pid in "${PIDS[@]}"; do | ||
echo "Killing process $pid" | ||
kill "$pid" 2>/dev/null || echo "Process $pid already terminated" | ||
done | ||
} | ||
|
||
trap cleanup EXIT | ||
|
||
start_node evm | ||
start_node starknet | ||
|
||
echo "Running evm tests" | ||
yarn test:integration:evm | ||
|
||
echo "Running starknet tests" | ||
yarn test:integration:starknet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters