From 07f1ce5822f5be127bba798412f6d5f404b2465a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 13 Jun 2024 00:00:51 +0200 Subject: [PATCH] Configure the postgres server to accept local connections without password --- .github/workflows/tests.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eb78b5e8..9015607b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,9 +57,10 @@ jobs: run: sudo systemctl start mysql.service if: matrix.db-type == 'mysql' + # Replace the scram-sha-256 with trust for host connections, to avoid password authentication - name: Start PostgreSQL run: | - sudo "echo 'host all all" >> /etc/postgresql/16/main/pg_hba.conf" + sudo sed -i 's/^\(host.*all.*all.*\)scram-sha-256/\1trust/' /etc/postgresql/14/main/pg_hba.conf sudo systemctl start postgresql.service sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';" if: matrix.db-type == 'postgres' @@ -148,7 +149,3 @@ jobs: if: matrix.db-type == 'mysql' && matrix.php-versions == '8.2' env: DATABASE_URL: mysql://root:root@localhost:3306/legacy_db - - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - if: ${{ failure() }}