From c28d05bf5ef1d31efa14a934dd6a59caffc775f7 Mon Sep 17 00:00:00 2001 From: Tomasz Slabon Date: Tue, 24 Oct 2023 15:05:16 +0200 Subject: [PATCH] Updated check for hardhat node running --- .github/workflows/system-tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml index a42f6a0f8..c6682e0ef 100644 --- a/.github/workflows/system-tests.yml +++ b/.github/workflows/system-tests.yml @@ -28,8 +28,7 @@ jobs: working-directory: ./solidity run: | npx hardhat node --no-deploy & - HH_NODE_PID=$! - while ! lsof -n -Fn -p $HH_NODE_PID | grep -q '^n.*:8545$'; do sleep 10; done + while [[ -z $(lsof -i :8545 -t) ]]; do echo "Waiting for port 8545 to be open..."; sleep 10; done - name: Deploy contracts working-directory: ./solidity @@ -84,8 +83,7 @@ jobs: working-directory: ./solidity run: | npx hardhat node --no-deploy & - HH_NODE_PID=$! - while ! lsof -n -Fn -p $HH_NODE_PID | grep -q '^n.*:8545$'; do sleep 10; done + while [[ -z $(lsof -i :8545 -t) ]]; do echo "Waiting for port 8545 to be open..."; sleep 10; done - name: Deploy contracts working-directory: ./solidity