diff --git a/.env.test b/.env.test index 8a73f3b1..eedecfef 100644 --- a/.env.test +++ b/.env.test @@ -6,4 +6,4 @@ PANTHER_APP_ENV=panther PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots # Root access needed to create the new TEST database -DATABASE_URL="mysql://root:biblioteca@db:3306/biblioteca?serverVersion=15&charset=utf8" +DATABASE_URL="sqlite:///%kernel.project_dir%/data/database.sqlite" diff --git a/.github/workflows/symfony.yml b/.github/workflows/symfony.yml index 4aa0f773..0216d4cb 100644 --- a/.github/workflows/symfony.yml +++ b/.github/workflows/symfony.yml @@ -40,4 +40,7 @@ jobs: - name: Execute tests env: DATABASE_URL: sqlite:///%kernel.project_dir%/data/database.sqlite - run: composer test + run: | + bin/console doctrine:schema:create --env=test + bin/console doctrine:schema:update --force --env=test + composer test