Skip to content

Commit 37e7163

Browse files
committed
Update PostgreSQL to version 18.
In light of [graphile/crystal#2752](graphile/crystal#2752), which depends on new PostgreSQL 18 behaviors, it seems advisable for graphile/starter to adopt PostgreSQL 18 in CI and production. Follows graphile#404
1 parent deccc82 commit 37e7163

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.github/workflows/cypress.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
services:
2121
postgres:
22-
image: postgres:17
22+
image: postgres:18
2323
env:
2424
POSTGRES_USER: postgres
2525
POSTGRES_PASSWORD: postgres
@@ -41,7 +41,7 @@ jobs:
4141
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
4242
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
4343
sudo apt-get update
44-
sudo apt-get -yqq install postgresql-client-17
44+
sudo apt-get -yqq install postgresql-client-18
4545
- name: Setup
4646
run: |
4747
cp .env.ci .env

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
services:
1919
postgres:
20-
image: postgres:17
20+
image: postgres:18
2121
env:
2222
POSTGRES_USER: postgres
2323
POSTGRES_PASSWORD: postgres
@@ -39,7 +39,7 @@ jobs:
3939
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
4040
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
4141
sudo apt-get update
42-
sudo apt-get -yqq install postgresql-client-17
42+
sudo apt-get -yqq install postgresql-client-18
4343
- name: yarn, lint, build and test
4444
run: |
4545
cp .env.ci .env

.github/workflows/pgrita.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
services:
1414
postgres:
15-
image: postgres:17
15+
image: postgres:18
1616
env:
1717
POSTGRES_USER: postgres
1818
POSTGRES_PASSWORD: postgres

.github/workflows/production-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
services:
1414
postgres:
15-
image: postgres:17
15+
image: postgres:18
1616
env:
1717
POSTGRES_USER: postgres
1818
POSTGRES_PASSWORD: postgres
@@ -35,7 +35,7 @@ jobs:
3535
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
3636
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
3737
sudo apt-get update
38-
sudo apt-get -yqq install postgresql-client-17
38+
sudo apt-get -yqq install postgresql-client-18
3939
- name: setup database
4040
run: |
4141
cp .env.ci .env

.github/workflows/windows-nodejs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ jobs:
2424
uses: actions/setup-node@v1
2525
with:
2626
node-version: "16"
27-
- name: Start Postgres 17
28-
run: |
29-
sc config postgresql-x64-17 start=auto
30-
net start postgresql-x64-17
27+
- name: Install and Start Postgres 18
28+
run: choco install postgresql18 -y --params '/Password:root'
3129
- name: Setup environment
3230
# Windows postgres auth is 'postgres'/'root' - see
3331
# https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md#postgresql

0 commit comments

Comments
 (0)