From 5577f9dbe374cc840ec262b97c9dcb8be3fd5e9a Mon Sep 17 00:00:00 2001 From: Jade Park Date: Fri, 30 Aug 2024 17:30:41 +0100 Subject: [PATCH] test: solana packages test on ci - check connection --- .github/workflows/solana-packages-test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/solana-packages-test.yml b/.github/workflows/solana-packages-test.yml index 2caec2d15..a9dc94e68 100644 --- a/.github/workflows/solana-packages-test.yml +++ b/.github/workflows/solana-packages-test.yml @@ -17,7 +17,15 @@ jobs: extra_nix_config: "sandbox = false" - name: Build and test solana-test-validator - run: nix run .#solana-test-validator + run: | + nix run .#solana-test-validator & + sleep 10 + if curl --fail http://127.0.0.1:8899; then + echo "Validator is running and accessible" + else + echo "Failed to connect to the validator" + exit 1 + fi - name: Build solana-cli-env run: nix build .#solana-cli-env --print-out-paths