Skip to content

Fix lint:deps

Fix lint:deps #198

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
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 16.x, 18.x]
postgres-version: [10, 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: yarn jest -i --ci