Skip to content

Commit 6f0adc2

Browse files
committed
validate database schema GHA
1 parent f38d541 commit 6f0adc2

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.laminas-ci/pre-run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ if [[ ${COMMAND} =~ phpunit ]];then
1212
cp config/autoload/mail.local.php.dist config/autoload/mail.local.php
1313
cp config/autoload/local.test.php.dist config/autoload/local.test.php
1414

15-
php bin/doctrine orm:validate-schema --skip-sync
1615
fi

config/autoload/local.test.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
/**
4+
* Local test configuration.
5+
*
6+
* Overwrites the database connection to use an in memory database
7+
*/
8+
9+
declare(strict_types=1);
10+
11+
use ApiTest\Functional\AbstractFunctionalTest;
12+
13+
if (! AbstractFunctionalTest::isTestMode()) {
14+
return [];
15+
}
16+
17+
return [
18+
'doctrine' => [
19+
'connection' => [
20+
'orm_default' => [
21+
'params' => [
22+
'url' => 'pdo_sqlite:///:memory:',
23+
],
24+
],
25+
],
26+
],
27+
];

0 commit comments

Comments
 (0)