File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
phpunit :
14
- name : " PHPUnit ${{ matrix.php-version }} (${{ matrix.deps }})${{ matrix.no-annotations == true && ' - Without Annotations' || '' }}"
14
+ name : " PHPUnit ${{ matrix.php-version }} (${{ matrix.deps }})${{ matrix.no-annotations == true && ' - Without Annotations' || '' }}${{ matrix.orm != '' && format(' - ORM {0}', matrix.orm) || '' }} "
15
15
runs-on : " ubuntu-20.04"
16
16
17
17
services :
@@ -33,17 +33,27 @@ jobs:
33
33
- " highest"
34
34
no-annotations :
35
35
- false
36
+ orm :
37
+ - " "
36
38
include :
37
39
- deps : " lowest"
38
40
php-version : " 7.4"
39
41
- deps : " highest"
40
42
php-version : " 8.3"
43
+ # Run builds on low and high PHP versions with `doctrine/annotations` removed
41
44
- deps : " highest"
42
45
php-version : " 7.4"
43
46
no-annotations : true
44
47
- deps : " highest"
45
48
php-version : " 8.3"
46
49
no-annotations : true
50
+ # Run builds on high PHP version with `doctrine/orm` version pinned
51
+ - deps : " highest"
52
+ php-version : " 8.3"
53
+ orm : " ^2.14"
54
+ - deps : " highest"
55
+ php-version : " 8.3"
56
+ orm : " ^3.0"
47
57
48
58
steps :
49
59
- name : " Checkout"
67
77
if : " ${{ matrix.no-annotations }}"
68
78
run : " composer remove --dev --no-update doctrine/annotations"
69
79
80
+ # Pin doctrine/orm if configured to do so
81
+ - name : " Pin doctrine/orm"
82
+ if : " ${{ matrix.orm }}"
83
+ run : " composer require --dev --no-update doctrine/orm:${{ matrix.orm }}"
84
+
70
85
- name : " Install dependencies with Composer"
71
86
uses : " ramsey/composer-install@v3"
72
87
with :
78
93
- name : " Upload coverage file"
79
94
uses : " actions/upload-artifact@v4"
80
95
with :
81
- name : " ${{ github.job }}-${{ matrix.php-version }}-${{ matrix.deps }}-${{ matrix.no-annotations == true && 'no-annotations' || 'with-annotations' }}-coverage"
96
+ name : " ${{ github.job }}-${{ matrix.php-version }}-${{ matrix.deps }}-${{ matrix.no-annotations == true && 'no-annotations' || 'with-annotations' }}${{ matrix.orm != '' && format('-orm-{0}', matrix.orm) || '' }} -coverage"
82
97
path : " coverage.xml"
83
98
84
99
lint-doctrine-xml-schema :
You can’t perform that action at this time.
0 commit comments