@@ -125,7 +125,7 @@ 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.with-migration-configuration-file, 'transactional') && '(configuration file transactional)' || contains(matrix.with-migration-configuration-file, 'configuration') && '(configuration file)' || '' }}${{ matrix.deps == 'lowest' && ' (lowest)' || '' }}${{ matrix.use-phpunit-extension == 0 && ' (no phpunit extension)' || '' }}
129129 runs-on : ubuntu-latest
130130 strategy :
131131 fail-fast : false
@@ -135,18 +135,21 @@ jobs:
135135 reset-database-mode : [ schema, migrate ]
136136 migration-configuration-file : ['no']
137137 deps : [ highest, lowest ]
138+ use-phpunit-extension : [ 1 ]
138139 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 }
140+ - { database: mongo, use-dama: 0, reset-database-mode: schema, use-phpunit-extension: 1 }
141+ - { database: pgsql, use-dama: 1, reset-database-mode: schema, use-phpunit-extension: 0 }
142+ - { database: pgsql, use-dama: 0, reset-database-mode: schema, use-phpunit-extension: 0 }
143+ - { database: pgsql, migration-configuration-file: 'migration-configuration', use-dama: 0, reset-database-mode: migration, use-phpunit-extension: 1 }
144+ - { database: pgsql, migration-configuration-file: 'migration-configuration-transactional', use-dama: 0, reset-database-mode: migration, use-phpunit-extension: 1 }
142145 env :
143146 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' }}
144147 MONGO_URL : ${{ contains(matrix.database, 'mongo') && 'mongodb://127.0.0.1:27017/dbName?compressors=disabled&gssapiServiceName=mongodb' || '' }}
145148 USE_DAMA_DOCTRINE_TEST_BUNDLE : ${{ matrix.use-dama == 1 && 1 || 0 }}
146149 DATABASE_RESET_MODE : ${{ matrix.reset-database-mode == 1 && 1 || 0 }}
147150 MIGRATION_CONFIGURATION_FILE : ${{ matrix.migration-configuration-file == 'no' && '' || format('tests/Fixture/MigrationTests/configs/{0}.php', matrix.migration-configuration-file) }}
148151 PHPUNIT_VERSION : 11
149- USE_FOUNDRY_PHPUNIT_EXTENSION : 1
152+ USE_FOUNDRY_PHPUNIT_EXTENSION : ${{ matrix.use-phpunit-extension }}
150153 services :
151154 postgres :
152155 image : ${{ contains(matrix.database, 'pgsql') && 'postgres:15' || '' }}
0 commit comments