Skip to content

chore(deps): update dependency typescript to v5.7.2 #1886

chore(deps): update dependency typescript to v5.7.2

chore(deps): update dependency typescript to v5.7.2 #1886

name: Cockroach Test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
integration-test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [20]
cockroach_version: [22.2.19, 23.2.4]
fail-fast: false
timeout-minutes: 10
name: 'Cockroach Test: cockroach-${{ matrix.cockroach_version }}, node-${{ matrix.node_version }}, ubuntu-latest'
steps:
- name: Init Cockroach
env:
COCKROACHDB_DOCKER_TAG: cockroachdb/cockroach:v${{ matrix.cockroach_version }}
DATABASE_URL: postgresql://root@localhost:26257/integration_test
run: |
docker pull $COCKROACHDB_DOCKER_TAG
docker run -d --name roach --hostname roach -p 26257:26257 -p 8080:8080 $COCKROACHDB_DOCKER_TAG 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 "./cockroach sql --execute=\"CREATE DATABASE integration_test;\" --insecure"
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
- name: Install deps
run: pnpm install
- name: Build
run: pnpm run build
- 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:
DATABASE_URL: postgresql://root@localhost:26257/integration_test