Skip to content

Commit db4e871

Browse files
committed
Add PostgreSQL 18 to CI.
1 parent 69f8643 commit db4e871

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.github/workflows/test.yml

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

1919
# Test all supported versions
2020
matrix:
21-
pgver: [13, 14, 15, 16, 17]
21+
pgver: [13, 14, 15, 16, 17, 18]
2222

2323
steps:
2424
- name: Checkout Code

test/Dockerfile.debian

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@ RUN groupadd -g $GID -o postgres
1919
RUN useradd -m -u $UID -g $GID -o -s /bin/bash postgres
2020

2121
# Add PostgreSQL repository
22-
RUN RELEASE_CODENAME=`lsb_release -c | awk '{print $2}'` && \
23-
echo 'deb http://apt.postgresql.org/pub/repos/apt/ '${RELEASE_CODENAME?}'-pgdg main '${PGVER?} | \
24-
tee -a /etc/apt/sources.list.d/pgdg.list
25-
RUN APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 && \
26-
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
27-
RUN apt-get update
22+
RUN apt-get install -y --no-install-recommends postgresql-common
23+
RUN /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y -c 18
2824

2925
# Install PostgreSQL
3026
RUN apt-get install -y postgresql-${PGVER?} postgresql-server-dev-${PGVER?}

test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Testing is performed using a Docker container. First build the container with the desired PostgreSQL version:
44
```
5-
docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) --build-arg PGVER=17 -f test/Dockerfile.debian -t set_user-test .
5+
docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) --build-arg PGVER=18 -f test/Dockerfile.debian -t set_user-test .
66
```
77
Then run the test:
88
```

0 commit comments

Comments
 (0)