From d18c40ef7d04254cb642fed9ddeabc24fc7bbec0 Mon Sep 17 00:00:00 2001 From: Jamil Date: Fri, 23 May 2025 14:43:47 -0700 Subject: [PATCH] feat(infra): Use Postgres 17 for dev and test (#9215) Upgrades dev and test envs to use Postgres 17. Related: #5442 --- .github/actions/setup-postgres/action.yml | 2 +- .github/workflows/_elixir.yml | 6 ------ docker-compose.yml | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/actions/setup-postgres/action.yml b/.github/actions/setup-postgres/action.yml index f8e6ba601..ffc4d6750 100644 --- a/.github/actions/setup-postgres/action.yml +++ b/.github/actions/setup-postgres/action.yml @@ -2,7 +2,7 @@ name: "Setup Postgres" description: "Starts a Postgres container" inputs: version: - default: "latest" + default: "17" description: "Postgres version" required: false port: diff --git a/.github/workflows/_elixir.yml b/.github/workflows/_elixir.yml index fb20633b9..9a3cd41db 100644 --- a/.github/workflows/_elixir.yml +++ b/.github/workflows/_elixir.yml @@ -17,8 +17,6 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./.github/actions/setup-postgres - with: - version: 15 - uses: ./.github/actions/setup-elixir with: mix_env: ${{ env.MIX_ENV }} @@ -124,8 +122,6 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./.github/actions/setup-postgres - with: - version: 15 - uses: ./.github/actions/setup-elixir with: mix_env: ${{ env.MIX_ENV }} @@ -179,8 +175,6 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./.github/actions/setup-postgres - with: - version: 15 - uses: nanasess/setup-chromedriver@e93e57b843c0c92788f22483f1a31af8ee48db25 # v2.3.0 - run: | export DISPLAY=:99 diff --git a/docker-compose.yml b/docker-compose.yml index 0178f389a..c5ee0df0b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: # Dependencies postgres: # TODO: Enable pgaudit on dev instance. See https://github.com/pgaudit/pgaudit/issues/44#issuecomment-455090262 - image: postgres:15 + image: postgres:17 command: ["postgres", "-c", "wal_level=logical"] volumes: - postgres-data:/var/lib/postgresql/data