From b0fd28a944bd868b6c2a6ba19ee54675b27ff63f Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 5 Dec 2024 10:58:35 +0000 Subject: [PATCH] Install Postgres 16 when testing postgres. --- .github/workflows/budibase_ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index 90b747f07e..cb20bb8c37 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -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 }}