From 8ffe418013a9d7e6658054f4ed199e31a78f4401 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 30 Nov 2024 13:37:20 +0100 Subject: [PATCH] fix --- .github/workflows/REUSABLE_backend.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/REUSABLE_backend.yml b/.github/workflows/REUSABLE_backend.yml index 3bd328145d..53bd4ca15b 100644 --- a/.github/workflows/REUSABLE_backend.yml +++ b/.github/workflows/REUSABLE_backend.yml @@ -243,12 +243,6 @@ jobs: matrix: php: ${{ fromJson(inputs.php_versions) }} - services: - mysql: - image: mysql:8.0.30 - ports: - - 3306 - name: 'PHPStan PHP ${{ matrix.php }}' if: >- @@ -271,11 +265,15 @@ jobs: run: composer install working-directory: ${{ inputs.backend_directory }} + - name: Create MySQL Database + run: | + sudo systemctl start mysql + mysql -uroot -proot -e 'CREATE DATABASE flarum_test;' --port 3306 + - name: Run PHPStan run: composer analyse:phpstan env: - DB_HOST: 127.0.0.1 - DB_PORT: ${{ job.services.mysql.ports['3306'] }} + DB_PORT: 3306 DB_PASSWORD: root COMPOSER_PROCESS_TIMEOUT: 600 FLARUM_TEST_TMP_DIR_LOCAL: ./tmp