Skip to content

Commit 6cc7d39

Browse files
committed
fix: CI using postgres image
1 parent 35ee6f4 commit 6cc7d39

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ commands:
1717
cache-only-lockfile: true
1818
app-dir: ~/repo
1919
override-ci-command: yarn install --pure-lockfile --no-progress
20-
- run: sudo apt update -q && sudo apt install postgresql-12
2120

2221
jobs:
2322
build:
23+
docker:
24+
- image: cimg/postgres:14.6
2425
executor:
2526
name: node/default
2627
tag: <<pipeline.parameters.node_version>>

jest-postgres-config.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/index.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('#postgres', () => {
99

1010
const returnedUrl = await start({
1111
seedPath: `${cwd()}/src/schema.sql`,
12-
version: 12,
12+
version: 14,
1313
includeInstallation: false,
1414
});
1515

@@ -57,7 +57,9 @@ describe('#postgres', () => {
5757
});
5858

5959
it('should stop postgres@14 locally', async () => {
60-
await stop({});
60+
await stop({
61+
version: 14,
62+
});
6163
try {
6264
const sql = postgres('postgres://localhost:5555/postgres');
6365

0 commit comments

Comments
 (0)