Install Postgres 16 when testing postgres.

This commit is contained in:
Sam Rose 2024-12-05 10:58:35 +00:00
parent 2750b806c2
commit b0fd28a944
No known key found for this signature in database
1 changed files with 8 additions and 0 deletions

View File

@ -200,6 +200,14 @@ jobs:
- run: yarn --frozen-lockfile
- name: Set up PostgreSQL 16
if: matrix.datasource == 'postgres'
run: |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y postgresql-16
- name: Test server
env:
DATASOURCE: ${{ matrix.datasource }}