Improve distributed database support #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: [master] | |
| tags-ignore: ['**'] | |
| pull_request: | |
| branches: [master] | |
| name: CI (CockroachDB) | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Start CockroachDB | |
| run: docker compose up -d --wait cockroachdb | |
| - name: Create database | |
| run: | | |
| docker compose exec cockroachdb cockroach sql --insecure -e "CREATE DATABASE IF NOT EXISTS pgboss" | |
| - name: Install | |
| run: npm install | |
| - name: Test distributed database mode | |
| run: npm test -- test/distributedDatabaseTest.ts | |
| env: | |
| DB_TYPE: cockroachdb | |
| COCKROACH_HOST: localhost |