Skip to content

Commit

Permalink
validate database schema GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRadu committed Jun 20, 2024
1 parent f38d541 commit 6f0adc2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion .laminas-ci/pre-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ if [[ ${COMMAND} =~ phpunit ]];then
cp config/autoload/mail.local.php.dist config/autoload/mail.local.php
cp config/autoload/local.test.php.dist config/autoload/local.test.php

php bin/doctrine orm:validate-schema --skip-sync
fi
27 changes: 27 additions & 0 deletions config/autoload/local.test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/**
* Local test configuration.
*
* Overwrites the database connection to use an in memory database
*/

declare(strict_types=1);

use ApiTest\Functional\AbstractFunctionalTest;

if (! AbstractFunctionalTest::isTestMode()) {
return [];
}

return [
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => [
'url' => 'pdo_sqlite:///:memory:',
],
],
],
],
];

0 comments on commit 6f0adc2

Please sign in to comment.