Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 30, 2024
1 parent 7da4b11 commit 6c8352d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/REUSABLE_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
POSTGRES_USER: ${{ env.DB_USERNAME }}
POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }}
ports:
- 15432:5432
- 5432
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
fi
working-directory: ${{ inputs.backend_directory }}
env:
DB_PORT: ${{ matrix.driver == 'mysql' && 3306 || (matrix.driver == 'mariadb' && 3306 || 15432) }}
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
Expand All @@ -230,7 +230,7 @@ jobs:

strategy:
matrix:
php: ${{ fromJSON(inputs.php_versions) }}
php: ${{ fromJson(inputs.php_versions) }}

services:
mysql:
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
- name: Run PHPStan
run: composer analyse:phpstan
env:
DB_PORT: 3306
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
DB_PASSWORD: root
COMPOSER_PROCESS_TIMEOUT: 600
FLARUM_TEST_TMP_DIR_LOCAL: ./tmp

0 comments on commit 6c8352d

Please sign in to comment.