@@ -14,13 +14,15 @@ jobs:
1414 runs-on : " ubuntu-latest"
1515
1616 strategy :
17+ fail-fast : false
1718 matrix :
1819 php-version :
1920 - " 7.1"
2021 - " 7.2"
2122 - " 7.3"
2223 - " 7.4"
2324 - " 8.0"
25+ - " 8.1"
2426
2527 steps :
2628 - name : " Checkout"
@@ -35,12 +37,16 @@ jobs:
3537 - name : " Validate Composer"
3638 run : " composer validate"
3739
38- - name : " Install dependencies"
39- run : " composer install --no-interaction --no-progress --no-suggest"
40-
4140 - name : " Downgrade PHPUnit"
4241 if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
43- run : " composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
42+ run : " composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"
43+
44+ - name : " Downgrade Doctrine ORM"
45+ if : matrix.php-version == '7.1'
46+ run : " composer require --dev doctrine/orm:^2.7.5 doctrine/lexer:^1.0 --no-update --update-with-dependencies"
47+
48+ - name : " Install dependencies"
49+ run : " composer install --no-interaction --no-progress"
4450
4551 - name : " Lint"
4652 run : " make lint"
6470 run : " composer validate"
6571
6672 - name : " Install dependencies"
67- run : " composer install --no-interaction --no-progress --no-suggest "
73+ run : " composer install --no-interaction --no-progress"
6874
6975 - name : " Lint"
7076 run : " make lint"
8591 - " 7.3"
8692 - " 7.4"
8793 - " 8.0"
94+ - " 8.1"
8895 dependencies :
8996 - " lowest"
9097 - " highest"
@@ -99,17 +106,21 @@ jobs:
99106 coverage : " none"
100107 php-version : " ${{ matrix.php-version }}"
101108
109+ - name : " Downgrade PHPUnit"
110+ if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
111+ run : " composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"
112+
113+ - name : " Downgrade Doctrine ORM"
114+ if : matrix.php-version == '7.1'
115+ run : " composer require --dev doctrine/orm:^2.7.5 doctrine/lexer:^1.0 --no-update --update-with-dependencies"
116+
102117 - name : " Install lowest dependencies"
103118 if : ${{ matrix.dependencies == 'lowest' }}
104- run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest "
119+ run : " composer update --prefer-lowest --no-interaction --no-progress"
105120
106121 - name : " Install highest dependencies"
107122 if : ${{ matrix.dependencies == 'highest' }}
108- run : " composer update --no-interaction --no-progress --no-suggest"
109-
110- - name : " Downgrade PHPUnit"
111- if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
112- run : " composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
123+ run : " composer update --no-interaction --no-progress"
113124
114125 - name : " Tests"
115126 run : " make tests"
@@ -127,6 +138,7 @@ jobs:
127138 - " 7.3"
128139 - " 7.4"
129140 - " 8.0"
141+ - " 8.1"
130142 dependencies :
131143 - " lowest"
132144 - " highest"
@@ -143,17 +155,21 @@ jobs:
143155 extensions : mbstring
144156 tools : composer:v2
145157
158+ - name : " Downgrade PHPUnit"
159+ if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
160+ run : " composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"
161+
162+ - name : " Downgrade Doctrine ORM"
163+ if : matrix.php-version == '7.1'
164+ run : " composer require --dev doctrine/orm:^2.7.5 doctrine/lexer:^1.0 --no-update --update-with-dependencies"
165+
146166 - name : " Install lowest dependencies"
147167 if : ${{ matrix.dependencies == 'lowest' }}
148- run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest "
168+ run : " composer update --prefer-lowest --no-interaction --no-progress"
149169
150170 - name : " Install highest dependencies"
151171 if : ${{ matrix.dependencies == 'highest' }}
152- run : " composer update --no-interaction --no-progress --no-suggest"
153-
154- - name : " Downgrade PHPUnit"
155- if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
156- run : " composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
172+ run : " composer update --no-interaction --no-progress"
157173
158174 - name : " PHPStan"
159175 run : " make phpstan"
0 commit comments