From 3af9596f3e12593ece7c4e7fee72f8de2c77464d Mon Sep 17 00:00:00 2001 From: Conor Mongey Date: Mon, 16 Oct 2023 12:41:54 +0100 Subject: [PATCH] Wait for kafka --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index feb1250f..ac262264 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,6 +58,14 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Bring up kafka + zk - run: docker-compose up -d + uses: JarvusInnovations/background-action@v1 + with: + run: docker compose up & + wait-on: | + tcp:localhost:9092 + tcp:localhost:9093 + tail: true + log-output-if: true + - name: "Run tests" run: make testacc