@@ -112,7 +112,7 @@ jobs:
112112 shell : bash
113113
114114 test-reset-database :
115- 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)' || '' }}
115+ 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)' || '' }}
116116 runs-on : ubuntu-latest
117117 strategy :
118118 fail-fast : false
@@ -122,18 +122,21 @@ jobs:
122122 reset-database-mode : [ schema, migrate ]
123123 migration-configuration-file : ['no']
124124 deps : [ highest, lowest ]
125+ use-phpunit-extension : [ 1 ]
125126 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 }
127+ - { database: mongo, use-dama: 0, reset-database-mode: schema, use-phpunit-extension: 1 }
128+ - { database: pgsql, use-dama: 1, reset-database-mode: schema, use-phpunit-extension: 0 }
129+ - { database: pgsql, use-dama: 0, reset-database-mode: schema, use-phpunit-extension: 0 }
130+ - { database: pgsql, migration-configuration-file: 'migration-configuration', use-dama: 0, reset-database-mode: migration, use-phpunit-extension: 1 }
131+ - { database: pgsql, migration-configuration-file: 'migration-configuration-transactional', use-dama: 0, reset-database-mode: migration, use-phpunit-extension: 1 }
129132 env :
130133 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' }}
131134 MONGO_URL : ${{ contains(matrix.database, 'mongo') && 'mongodb://127.0.0.1:27017/dbName?compressors=disabled&gssapiServiceName=mongodb' || '' }}
132135 USE_DAMA_DOCTRINE_TEST_BUNDLE : ${{ matrix.use-dama == 1 && 1 || 0 }}
133136 DATABASE_RESET_MODE : ${{ matrix.reset-database-mode == 1 && 1 || 0 }}
134137 MIGRATION_CONFIGURATION_FILE : ${{ matrix.migration-configuration-file == 'no' && '' || format('tests/Fixture/MigrationTests/configs/{0}.php', matrix.migration-configuration-file) }}
135138 PHPUNIT_VERSION : 11
136- USE_FOUNDRY_PHPUNIT_EXTENSION : 1
139+ USE_FOUNDRY_PHPUNIT_EXTENSION : ${{ matrix.use-phpunit-extension }}
137140 services :
138141 postgres :
139142 image : ${{ contains(matrix.database, 'pgsql') && 'postgres:15' || '' }}
0 commit comments