@@ -120,19 +120,25 @@ jobs:
120
120
database : [ mysql, pgsql, sqlite, mysql|mongo ]
121
121
use-dama : [ 0, 1 ]
122
122
reset-database-mode : [ schema, migrate ]
123
- migration-configuration-file : ['no ']
123
+ migration-configuration-file : ['[] ']
124
124
deps : [ highest, lowest ]
125
125
include :
126
- - { database: mongo, migration-configuration-file: 'no', use-dama: 0, reset-database-mode: schema }
127
- - { database: pgsql, migration-configuration-file: 'migration-configuration', use-dama: 0, reset-database-mode: migration }
128
- - { database: pgsql, migration-configuration-file: 'migration-configuration-transactional', use-dama: 0, reset-database-mode: migration }
126
+ - { database: mongo, migration-configuration-file: '[]', use-dama: 0, reset-database-mode: schema }
127
+ - { database: pgsql, migration-configuration-file: '["tests/Fixture/ResetDatabase/migration-configs/migration-configuration.php"]', use-dama: 0, reset-database-mode: migrate }
128
+ - { database: pgsql, migration-configuration-file: '["tests/Fixture/ResetDatabase/migration-configs/migration-configuration-transactional.php"]', use-dama: 0, reset-database-mode: migrate }
129
+ -
130
+ database : pgsql
131
+ use-dama : 0
132
+ reset-database-mode : migrate
133
+ migration-configuration-file : ' ["tests/Fixture/ResetDatabase/migration-configs/migration-configuration-transactional.php", "tests/Fixture/ResetDatabase/migration-configs/migration-dummy.php"]'
134
+ deps : highest
129
135
env :
130
136
DATABASE_URL : ${{ contains(matrix.database, 'mysql') && 'mysql://root:root@localhost:3306/foundry?serverVersion=5.7.42' || contains(matrix.database, 'pgsql') && 'postgresql://root:root@localhost:5432/foundry?serverVersion=15' || 'sqlite:///%kernel.project_dir%/var/data.db' }}
131
137
MONGO_URL : ${{ contains(matrix.database, 'mongo') && 'mongodb://127.0.0.1:27017/dbName?compressors=disabled&gssapiServiceName=mongodb' || '' }}
132
138
USE_DAMA_DOCTRINE_TEST_BUNDLE : ${{ matrix.use-dama == 1 && 1 || 0 }}
133
- DATABASE_RESET_MODE : ${{ matrix.reset-database-mode == 1 && 1 || 0 }}
134
- MIGRATION_CONFIGURATION_FILE : ${{ matrix.migration-configuration-file == 'no' && '' || format('tests/Fixture/MigrationTests/configs/{0}.php', matrix.migration-configuration-file) }}
135
- PHPUNIT_VERSION : 11
139
+ DATABASE_RESET_MODE : ${{ matrix.reset-database-mode }}
140
+ MIGRATION_CONFIGURATION_FILES : ${{ matrix.migration-configuration-file }}
141
+ PHPUNIT_VERSION : 12
136
142
services :
137
143
postgres :
138
144
image : ${{ contains(matrix.database, 'pgsql') && 'postgres:15' || '' }}
@@ -180,7 +186,7 @@ jobs:
180
186
181
187
# We should be able to run the tests twice in order to check if the second run also starts from a fresh db
182
188
# some bugs could be detected this way
183
- ./phpunit --testsuite reset-database --bootstrap tests/bootstrap-reset-database.php
189
+ DATABASE_GENERATE_MIGRATIONS=0 ./phpunit --testsuite reset-database --bootstrap tests/bootstrap-reset-database.php
184
190
shell : bash
185
191
186
192
test-no-framework :
@@ -293,7 +299,7 @@ jobs:
293
299
- name : Setup PHP
294
300
uses : shivammathur/setup-php@v2
295
301
with :
296
- php-version : 8.2
302
+ php-version : 8.4
297
303
coverage : xdebug
298
304
ini-values : xdebug.mode=coverage
299
305
0 commit comments