From d1d97c1b424073985c31b6e28c62b11494b0a547 Mon Sep 17 00:00:00 2001
From: zerolab <dan@zerolab.org>
Date: Sun, 24 Sep 2023 12:04:17 +0100
Subject: [PATCH] Try to speed up tests on postgres

---
 .github/workflows/ci.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e12ace73..9f356c09 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -36,12 +36,15 @@ jobs:
 
     services:
       postgres:
-        image: postgres:14
+        image: bitnami/postgresql:14
         env:
           POSTGRES_PASSWORD: postgres
+          POSTGRESQL_PASSWORD: postgres
+          POSTGRESQL_FSYNC: "off"
+          POSTGRESQL_DATA_DIR: /dev/shm/pgdata
         ports:
           - 5432:5432
-        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
+        options: --health-cmd "pg_isready -d postgres -U postgres -p 5432" --health-interval 10s --health-timeout 5s --health-retries 5
 
     steps:
       - uses: actions/checkout@v3