From 7d875f40a7a2a54e292cb7638f85cb1656679b38 Mon Sep 17 00:00:00 2001 From: Matan Yadaev Date: Thu, 14 Mar 2024 01:13:27 +0200 Subject: [PATCH] ci fixes --- .github/workflows/pest.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pest.yml b/.github/workflows/pest.yml index e890536..a4381d9 100644 --- a/.github/workflows/pest.yml +++ b/.github/workflows/pest.yml @@ -60,17 +60,16 @@ jobs: - name: Set DB_CONNECTION env variable (PostGIS) if: contains(matrix.db, 'postgis') - run: echo "DB_CONNECTION=pgsql" >> "$GITHUB_ENV" + run: | + echo "DB_CONNECTION=pgsql" >> "$GITHUB_ENV" - name: Set DB_CONNECTION env variable (MariaDB & Laravel 11) if: contains(matrix.laravel, '11') && contains(matrix.db, 'mariadb') - run: echo "DB_CONNECTION=maria" >> "$GITHUB_ENV" - - - name: Set DB_CONNECTION env variable (Rest) - if: !contains(matrix.db, 'postgis') || (!contains(matrix.laravel, '11') && !contains(matrix.db, 'mariadb')) - run: echo "DB_CONNECTION=mysql" >> "$GITHUB_ENV" + run: | + echo "DB_CONNECTION=maria" >> "$GITHUB_ENV" - name: Execute tests env: DB_PORT: ${{ job.services.db.ports[contains(matrix.db, 'postgis') && '5432' || '3306'] }} + DB_CONNECTION: ${{ env.DB_CONNECTION || 'mysql' }} run: vendor/bin/pest