diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a1128f..2e012d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,11 +24,12 @@ jobs: services: postgres: - image: postgres:9.6-alpine + image: postgres:16-alpine env: POSTGRES_USER: postgrator POSTGRES_PASSWORD: postgrator POSTGRES_DB: postgrator + POSTGRES_HOST_AUTH_METHOD: md5 ports: - 5432:5432 options: >- diff --git a/test/api.js b/test/api.js index 317603f..898bac8 100644 --- a/test/api.js +++ b/test/api.js @@ -4,7 +4,7 @@ const Postgrator = require('../postgrator') const path = require('path') const migrationDirectory = path.join(__dirname, 'migrations') -const pgUrl = 'tcp://postgrator:postgrator@localhost:5432/postgrator' +const pgUrl = 'postgres://postgrator:postgrator@localhost:5432/postgrator' describe('API', function() { const postgrator = new Postgrator({ diff --git a/test/api.ts b/test/api.ts index 1921024..be8e39f 100644 --- a/test/api.ts +++ b/test/api.ts @@ -3,7 +3,7 @@ import * as Postgrator from '../' import * as path from 'path' const migrationDirectory = path.join(__dirname, 'migrations') -const pgUrl = 'tcp://postgrator:postgrator@localhost:5432/postgrator' +const pgUrl = 'postgres://postgrator:postgrator@localhost:5432/postgrator' describe('TypeScript:API', function() { const postgrator = new Postgrator({ diff --git a/test/postgresConnectionUrl.js b/test/postgresConnectionUrl.js index e28f1a6..ed84b5b 100644 --- a/test/postgresConnectionUrl.js +++ b/test/postgresConnectionUrl.js @@ -4,7 +4,7 @@ const Postgrator = require('../postgrator') const path = require('path') const migrationDirectory = path.join(__dirname, 'migrations') -const pgUrl = 'tcp://postgrator:postgrator@localhost:5432/postgrator' +const pgUrl = 'postgres://postgrator:postgrator@localhost:5432/postgrator' describe('Postgres connection url', function() { const postgrator = new Postgrator({