@@ -120,19 +120,25 @@ jobs:
120120 database : [ mysql, pgsql, sqlite, mysql|mongo ]
121121 use-dama : [ 0, 1 ]
122122 reset-database-mode : [ schema, migrate ]
123- migration-configuration-file : ['no ']
123+ migration-configuration-file : ['[] ']
124124 deps : [ highest, lowest ]
125125 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
129135 env :
130136 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' }}
131137 MONGO_URL : ${{ contains(matrix.database, 'mongo') && 'mongodb://127.0.0.1:27017/dbName?compressors=disabled&gssapiServiceName=mongodb' || '' }}
132138 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
136142 services :
137143 postgres :
138144 image : ${{ contains(matrix.database, 'pgsql') && 'postgres:15' || '' }}
@@ -176,11 +182,11 @@ jobs:
176182
177183 - name : Test
178184 run : |
179- ./phpunit --testsuite reset-database --bootstrap tests/bootstrap-reset-database.php
185+ ./phpunit --testsuite reset-database
180186
181187 # We should be able to run the tests twice in order to check if the second run also starts from a fresh db
182188 # 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
184190 shell : bash
185191
186192 test-no-framework :
@@ -267,7 +273,7 @@ jobs:
267273 MONGO_URL : mongodb://127.0.0.1:27017/dbName?compressors=disabled&gssapiServiceName=mongodb
268274 USE_DAMA_DOCTRINE_TEST_BUNDLE : 1
269275 USE_FOUNDRY_PHPUNIT_EXTENSION : 1
270- PHPUNIT_VERSION : 11
276+ PHPUNIT_VERSION : 12
271277 services :
272278 mongo :
273279 image : mongo:4
@@ -293,7 +299,7 @@ jobs:
293299 - name : Setup PHP
294300 uses : shivammathur/setup-php@v2
295301 with :
296- php-version : 8.2
302+ php-version : 8.4
297303 coverage : xdebug
298304 ini-values : xdebug.mode=coverage
299305
0 commit comments