Update prepare behat test script #462
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Doctrine Migrations | |
on: | |
push: | |
branches: | |
- 'master' | |
- '[0-9].[0-9]+' | |
pull_request: ~ | |
env: | |
COMPOSER_ROOT_VERSION: dev-master | |
jobs: | |
mysql-migrations: | |
name: MySQL migrations | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: 'mysql:latest' | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: testdb | |
ports: | |
- '3306:3306' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
coverage: none | |
- run: echo "DATABASE=mysql://[email protected]/testdb" >> $GITHUB_ENV | |
# Install Flex as a global dependency to enable usage of extra.symfony.require | |
# while keeping Flex recipes from applying | |
- run: composer global config --no-plugins allow-plugins.symfony/flex true | |
- run: composer global require --no-scripts symfony/flex | |
- run: composer config extra.symfony.require ~6.4.0 | |
- run: composer update --prefer-dist | |
- run: php tests/application/bin/console doctrine:migrations:migrate --no-interaction --no-debug --env=prod --configuration=migrations/doctrine.yaml --ansi -vv |