diff --git a/.github/workflows/REUSABLE_backend.yml b/.github/workflows/REUSABLE_backend.yml index 87cbb483fe..86a009743d 100644 --- a/.github/workflows/REUSABLE_backend.yml +++ b/.github/workflows/REUSABLE_backend.yml @@ -161,7 +161,7 @@ jobs: MYSQL_PASSWORD: ${{ env.DB_PASSWORD }} MYSQL_ROOT_PASSWORD: root ports: - - 13306 + - 13306:13306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=10 postgres: image: ${{ matrix.driver == 'pgsql' && matrix.service || '' }} @@ -205,6 +205,7 @@ jobs: run: | sudo systemctl start mysql mysql -uroot -proot -e 'CREATE DATABASE flarum_test;' --port 13306 + mysql -uroot -proot -e 'GRANT ALL PRIVILEGES ON flarum_test.* TO "${{ env.DB_USERNAME }}"@"%" IDENTIFIED BY "${{ env.DB_PASSWORD }}";' --port 13306 - name: Install Composer dependencies run: composer install