Skip to content

Rename appuser -> dbowner and link to discussion in issue #215 #279

Rename appuser -> dbowner and link to discussion in issue #215

Rename appuser -> dbowner and link to discussion in issue #215 #279

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CI: true
PGUSER: postgres
PGPASSWORD: postgres
PGHOST: "127.0.0.1"
PGPORT: 5432
TEST_ROOT_DATABASE_URL: postgres://postgres:[email protected]:5432/postgres
TEST_DATABASE_URL: postgres://someone:[email protected]:5432/graphile_migrate_test
PGVERSION: 10
NODE_OPTIONS: "--experimental-vm-modules"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
postgres-version: [12, 15]
services:
postgres:
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "0.0.0.0:5432:5432"
# needed because the postgres container does not provide a healthcheck
options:
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: psql "${TEST_ROOT_DATABASE_URL}" -c "CREATE USER someone WITH LOGIN PASSWORD 'something';"
- run: yarn clean
- run: yarn prepack
- run: FORCE_COLOR=1 yarn jest -i --ci