Skip to content

Commit

Permalink
[Tests] Tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ksroga committed Sep 1, 2024
1 parent 111f68d commit 28c4252
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/symfony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ jobs:
run: until mysqladmin ping -h127.0.0.1 -uroot -proot --silent; do sleep 1; done

- name: Create Test Database
run: |
mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS test_db;"
mysql -u root -proot -e "GRANT ALL PRIVILEGES ON test_db.* TO 'test_user'@'localhost';"
run: php bin/console doctrine:database:create --if-not-exists --env=test
env:
DATABASE_URL: 'mysql://test_user:test_password@127.0.0.1:3306/test_db'

- name: Run Database Migrations
run: php bin/console doctrine:migrations:migrate --no-interaction --env=test
Expand Down

0 comments on commit 28c4252

Please sign in to comment.