Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solana: Ensure Solana CI/ Anchor test fails on faulty push #485

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
solana: Update script to pkill any running solana-test-validators
nvsriram committed Jul 29, 2024
commit 05d8ce55e0fb945aae04acd4b8137ef9dc7f596f
3 changes: 3 additions & 0 deletions solana/run-tests
Original file line number Diff line number Diff line change
@@ -11,4 +11,7 @@ do
env_flag="$(tr '[:lower:]' '[:upper:]' <<< ${filename//-/_})"

env $env_flag=1 bash -c 'anchor test --skip-build'

# kill solana validator if still running to avoid port already in use error
if pgrep solana-test-validator; then pkill solana-test-validator; fi
done