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 797c008 commit 8ffe418
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/REUSABLE_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
Expand All @@ -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

0 comments on commit 8ffe418

Please sign in to comment.