From 68a3614a54496ff0da27ee644d0f5176c42ff76f Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Wed, 28 Feb 2024 19:30:24 +0100 Subject: [PATCH] try wait-for-it --- .github/workflows/cockroach-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cockroach-test.yml b/.github/workflows/cockroach-test.yml index 03924f57..78f71d73 100644 --- a/.github/workflows/cockroach-test.yml +++ b/.github/workflows/cockroach-test.yml @@ -46,7 +46,8 @@ jobs: run: | docker pull cockroachdb/cockroach:v${{ matrix.cockroach_version }} docker run -d --name roach --hostname roach -p 26257:26257 -p 8080:8080 cockroachdb/cockroach:v${{ matrix.cockroach_version }} start --insecure - dockerize -wait tcp://127.0.0.1:26257 -timeout 60s + sudo apt update && sudo apt install wait-for-it -y + wait-for-it -h localhost -p 26257 docker exec roach bash -c "echo 'CREATE DATABASE integration_test;' | cockroach sql --insecure" - name: Integration Test