From 2405db06fd097d589ad9f985223dbeabbf8cae85 Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Wed, 28 Feb 2024 19:35:35 +0100 Subject: [PATCH] try start-single-node --- .github/workflows/cockroach-test.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cockroach-test.yml b/.github/workflows/cockroach-test.yml index 78f71d73..975395aa 100644 --- a/.github/workflows/cockroach-test.yml +++ b/.github/workflows/cockroach-test.yml @@ -21,6 +21,14 @@ jobs: name: 'Cockroach Test: cockroach-${{ matrix.cockroach_version }}, node-${{ matrix.node_version }}, ubuntu-latest' steps: + - name: Init Cockroach + 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-single-node --insecure + 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: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: @@ -42,14 +50,6 @@ jobs: - name: Build run: pnpm run build - - name: Init Cockroach - 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 - 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 run: pnpm run migrate up -m test/cockroach --no-lock && pnpm run migrate down 0 -m test/cockroach --no-lock --timestamps env: