88
99jobs :
1010 tests :
11- name : PHP ${{ matrix.php }}, SF ${{ matrix.symfony }} - ${{ matrix.deps }} ${{ matrix.use-orm == '1' && ' - ORM' || '' }} ${{ matrix.use-odm == '1' && '- ODM' || '' }} ${{ matrix.use-dama == '1' && '- DAMA' || '' }}
11+ name : PHP ${{ matrix.php }}, SF ${{ matrix.symfony }} - ${{ matrix.deps }} ${{ matrix.use-orm == '1' && (matrix.orm-db == 'postgres' && ' - ORM (postgres)' || '- ORM (mysql)') || '' }} ${{ matrix.use-odm == '1' && '- ODM' || '' }} ${{ matrix.use-dama == '1' && '- DAMA' || '' }}
1212 runs-on : ubuntu-latest
1313 strategy :
1414 fail-fast : false
@@ -19,20 +19,23 @@ jobs:
1919 use-orm : [1]
2020 use-odm : [1]
2121 use-dama : [1]
22+ orm-db : [ mysql ]
2223 exclude :
2324 - {use-orm: 0, use-odm: 0} # tested directly in a test case
2425 - {use-orm: 0, use-dama: 1} # cannot happen
2526 # conflicts
2627 - {php: 8.0, symfony: 6.2.*}
2728 - {php: 8.0, symfony: 6.3.*}
2829 include :
29- - {php: 8.0, symfony: 5.4.*, use-orm: 1, use-odm: 0, use-dama: 0, deps: lowest}
30- - {php: 8.0, symfony: 5.4.*, use-orm: 1, use-odm: 1, use-dama: 0, deps: lowest}
31- - {php: 8.0, symfony: 5.4.*, use-orm: 0, use-odm: 1, use-dama: 0, deps: lowest}
32- - {php: 8.2, symfony: 6.2.*, use-orm: 1, use-odm: 0, use-dama: 0, deps: highest}
33- - {php: 8.2, symfony: 6.2.*, use-orm: 1, use-odm: 1, use-dama: 0, deps: highest}
34- - {php: 8.2, symfony: 6.2.*, use-orm: 1, use-odm: 0, use-dama: 1, deps: highest}
35- - {php: 8.2, symfony: 6.2.*, use-orm: 0, use-odm: 1, use-dama: 0, deps: highest}
30+ - {php: 8.0, symfony: 5.4.*, use-orm: 1, use-odm: 0, use-dama: 0, deps: lowest, orm-db: mysql}
31+ - {php: 8.0, symfony: 5.4.*, use-orm: 1, use-odm: 1, use-dama: 0, deps: lowest, orm-db: mysql}
32+ - {php: 8.0, symfony: 5.4.*, use-orm: 0, use-odm: 1, use-dama: 0, deps: lowest, orm-db: mysql}
33+ - {php: 8.2, symfony: 6.2.*, use-orm: 1, use-odm: 0, use-dama: 0, deps: highest, orm-db: mysql}
34+ - {php: 8.2, symfony: 6.2.*, use-orm: 1, use-odm: 1, use-dama: 0, deps: highest, orm-db: mysql}
35+ - {php: 8.2, symfony: 6.2.*, use-orm: 1, use-odm: 0, use-dama: 1, deps: highest, orm-db: mysql}
36+ - {php: 8.2, symfony: 6.2.*, use-orm: 0, use-odm: 1, use-dama: 0, deps: highest, orm-db: mysql}
37+ - {php: 8.2, symfony: 6.2.*, use-orm: 1, use-odm: 0, use-dama: 1, deps: highest, orm-db: postgres}
38+ - {php: 8.2, symfony: 6.2.*, use-orm: 1, use-odm: 0, use-dama: 0, deps: highest, orm-db: postgres}
3639
3740 services :
3841 mysql :
@@ -42,13 +45,25 @@ jobs:
4245 ports :
4346 - 3306:3306
4447 options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
48+
49+ postgres :
50+ image : postgres:15
51+ env :
52+ POSTGRES_USER : postgres
53+ POSTGRES_DB : zenstruck_foundry_${{ matrix.use-dama }}_${{ matrix.orm-db }}
54+ POSTGRES_PASSWORD : 1234
55+ options : --health-cmd pg_isready --health-interval=10s --health-timeout=5s --health-retries=5
56+ ports :
57+ - 5432:5432
58+
4559 mongo :
4660 image : mongo:4
4761 ports :
4862 - 27017:27017
4963
5064 env :
51- DATABASE_URL : mysql://root:1234@127.0.0.1:3306/zenstruck_foundry?serverVersion=5.7
65+ MYSQL_URL : mysql://root:1234@127.0.0.1:3306/zenstruck_foundry?serverVersion=5.7
66+ PGSQL_URL : postgresql://postgres:1234@127.0.0.1:5432/zenstruck_foundry_${{ matrix.use-dama }}_${{ matrix.orm-db }}?charset=utf8&serverVersion=15
5267 MONGO_URL : mongodb://127.0.0.1:27017/dbName?compressors=disabled&gssapiServiceName=mongodb
5368
5469 steps :
85100 USE_ORM : ${{ matrix.use-orm }}
86101 USE_ODM : ${{ matrix.use-odm }}
87102 USE_FOUNDRY_BUNDLE : 1
103+ DATABASE_URL : ${{ matrix.orm-db == 'postgres' && env.PGSQL_URL || env.MYSQL_URL }}
88104
89105 code-coverage :
90106 name : Code Coverage
0 commit comments