Skip to content

Commit

Permalink
try start-single-node
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Feb 28, 2024
1 parent 68a3614 commit 2405db0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cockroach-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 2405db0

Please sign in to comment.