From aa57ba59986b14c1130bfc11d12c981ccee0d8c9 Mon Sep 17 00:00:00 2001 From: npty Date: Mon, 8 Jul 2024 17:29:36 +0700 Subject: [PATCH] chore: debug#2 --- .github/workflows/test-core.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index c533f77..6eb1f96 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -47,15 +47,16 @@ jobs: timeout-minutes: 15 run: | echo "Checking EVM node 1 (8545)" - curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' http://localhost:8545 || true + curl -v -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' http://localhost:8545 echo "\n\nChecking EVM node 2 (8546)" - curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' http://localhost:8546 || true - echo "\n\nChecking network connections" - netstat -tuln | grep LISTEN - echo "\n\nChecking Docker containers" - docker ps + curl -v -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' http://localhost:8546 + echo "\n\nTrying with 127.0.0.1 instead of localhost" + curl -v -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' http://127.0.0.1:8545 + echo "\n\nChecking if curl can reach other services" + curl -v http://example.com echo "\n\nDocker logs for Anvil containers" - docker logs $(docker ps -q --filter "ancestor=ghcr.io/foundry-rs/foundry") || true + docker logs $(docker ps -q --filter "ancestor=ghcr.io/foundry-rs/foundry:latest") echo "\n\nRunning tests" + # curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' http://127.0.0.1:8545 npm run test:core