From 06b7fcd64e805faee028d30247870cfa6d4ca625 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 30 Nov 2024 13:17:53 +0100 Subject: [PATCH] fix --- .github/workflows/REUSABLE_backend.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/REUSABLE_backend.yml b/.github/workflows/REUSABLE_backend.yml index 68c7f23d1b..d120308eb4 100644 --- a/.github/workflows/REUSABLE_backend.yml +++ b/.github/workflows/REUSABLE_backend.yml @@ -154,7 +154,7 @@ jobs: services: mysql: - image: ${{ (matrix.driver == 'mysql' && matrix.service) || ((matrix.driver == 'mariadb' && matrix.service) || '') }} + image: ${{ contains(fromJson('["mysql", "mariadb"]'), matrix.driver) && matrix.service || '' }} env: MYSQL_DATABASE: ${{ env.DB_DATABASE }} MYSQL_USER: ${{ env.DB_USERNAME }} @@ -220,7 +220,8 @@ jobs: fi working-directory: ${{ inputs.backend_directory }} env: - DB_PORT: ${{ contains(fromJson('["mysql", "mariadb"]'), matrix.driver) && job.services.mysql.ports['3306'] || matrix.driver == 'pgsql' && job.services.postgres.ports['5432'] }} + DB_HOST: 127.0.0.1 + DB_PORT: ${{ (contains(fromJson('["mysql", "mariadb"]'), matrix.driver) && job.services.mysql.ports['3306']) || (matrix.driver == 'pgsql' && job.services.postgres.ports['5432']) }} DB_PREFIX: ${{ matrix.prefix }} DB_DRIVER: ${{ matrix.driver }} COMPOSER_PROCESS_TIMEOUT: 600