@@ -125,27 +125,33 @@ jobs:
125125 shell : bash
126126
127127 test-reset-database :
128- name : Reset DB - D:${{ matrix.database }} ${{ matrix.use-dama == 1 && ' (dama)' || '' }} ${{ matrix.reset-database-mode == 'migrate' && ' (migrate)' || '' }} ${{ contains(matrix.with- migration-configuration-file, 'transactional') && '(configuration file transactional)' || contains(matrix.with- migration-configuration-file, 'configuration') && '(configuration file)' || '' }}${{ matrix.deps == 'lowest' && ' (lowest)' || '' }}
128+ name : Reset DB - D:${{ matrix.database }} ${{ matrix.use-dama == 1 && ' (dama)' || '' }} ${{ matrix.reset-database-mode == 'migrate' && ' (migrate)' || '' }} ${{ contains(matrix.migration-configuration-file, ',') && '(multi configuration files)' || contains(matrix. migration-configuration-file, 'transactional') && '(configuration file transactional)' || contains(matrix.migration-configuration-file, 'configuration') && '(configuration file)' || '' }}${{ matrix.deps == 'lowest' && ' (lowest)' || '' }}
129129 runs-on : ubuntu-latest
130130 strategy :
131131 fail-fast : false
132132 matrix :
133133 database : [ mysql, pgsql, sqlite, mysql|mongo ]
134134 use-dama : [ 0, 1 ]
135135 reset-database-mode : [ schema, migrate ]
136- migration-configuration-file : ['no ']
136+ migration-configuration-file : ['[] ']
137137 deps : [ highest, lowest ]
138138 include :
139- - { database: mongo, migration-configuration-file: 'no', use-dama: 0, reset-database-mode: schema }
140- - { database: pgsql, migration-configuration-file: 'migration-configuration', use-dama: 0, reset-database-mode: migration }
141- - { database: pgsql, migration-configuration-file: 'migration-configuration-transactional', use-dama: 0, reset-database-mode: migration }
139+ - { database: mongo, migration-configuration-file: '[]', use-dama: 0, reset-database-mode: schema }
140+ - { database: pgsql, migration-configuration-file: '["tests/Fixture/ResetDatabase/migration-configs/migration-configuration.php"]', use-dama: 0, reset-database-mode: migrate }
141+ - { database: pgsql, migration-configuration-file: '["tests/Fixture/ResetDatabase/migration-configs/migration-configuration-transactional.php"]', use-dama: 0, reset-database-mode: migrate }
142+ -
143+ database : pgsql
144+ use-dama : 0
145+ reset-database-mode : migrate
146+ migration-configuration-file : ' ["tests/Fixture/ResetDatabase/migration-configs/migration-configuration-transactional.php", "tests/Fixture/ResetDatabase/migration-configs/migration-dummy.php"]'
147+ deps : highest
142148 env :
143149 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' }}
144150 MONGO_URL : ${{ contains(matrix.database, 'mongo') && 'mongodb://127.0.0.1:27017/dbName?compressors=disabled&gssapiServiceName=mongodb' || '' }}
145151 USE_DAMA_DOCTRINE_TEST_BUNDLE : ${{ matrix.use-dama == 1 && 1 || 0 }}
146- DATABASE_RESET_MODE : ${{ matrix.reset-database-mode == 1 && 1 || 0 }}
147- MIGRATION_CONFIGURATION_FILE : ${{ matrix.migration-configuration-file == 'no' && '' || format('tests/Fixture/MigrationTests/configs/{0}.php', matrix.migration-configuration-file) }}
148- PHPUNIT_VERSION : 11
152+ DATABASE_RESET_MODE : ${{ matrix.reset-database-mode }}
153+ MIGRATION_CONFIGURATION_FILES : ${{ matrix.migration-configuration-file }}
154+ PHPUNIT_VERSION : 12
149155 services :
150156 postgres :
151157 image : ${{ contains(matrix.database, 'pgsql') && 'postgres:15' || '' }}
@@ -193,7 +199,7 @@ jobs:
193199
194200 # We should be able to run the tests twice in order to check if the second run also starts from a fresh db
195201 # some bugs could be detected this way
196- ./phpunit --testsuite reset-database --bootstrap tests/bootstrap-reset-database.php
202+ DATABASE_GENERATE_MIGRATIONS=0 ./phpunit --testsuite reset-database --bootstrap tests/bootstrap-reset-database.php
197203 shell : bash
198204
199205 test-no-framework :
@@ -307,7 +313,7 @@ jobs:
307313 - name : Setup PHP
308314 uses : shivammathur/setup-php@v2
309315 with :
310- php-version : 8.2
316+ php-version : 8.4
311317 coverage : xdebug
312318 ini-values : xdebug.mode=coverage
313319
0 commit comments