@@ -40,11 +40,13 @@ jobs:
40
40
fail-fast : true
41
41
matrix :
42
42
php : [8.2, 8.3, 8.4]
43
- phpunit : ['10.5.35', '11.3.2', '12.0.0']
43
+ phpunit : ['10.5.35', '11.3.2', '12.0.0', '12.1.0' ]
44
44
stability : [prefer-lowest, prefer-stable]
45
45
exclude :
46
46
- php : 8.2
47
47
phpunit : ' 12.0.0'
48
+ - php : 8.2
49
+ phpunit : ' 12.1.0'
48
50
49
51
name : PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - ${{ matrix.stability }}
50
52
@@ -76,19 +78,12 @@ jobs:
76
78
shell : bash
77
79
if : matrix.php >= 8.4
78
80
79
- - name : Set PHPUnit
80
- uses : nick-fields/retry@v3
81
- with :
82
- timeout_minutes : 5
83
- max_attempts : 5
84
- command : composer require phpunit/phpunit:^${{ matrix.phpunit }} --dev --no-interaction --no-update
85
-
86
81
- name : Install dependencies
87
82
uses : nick-fields/retry@v3
88
83
with :
89
84
timeout_minutes : 5
90
85
max_attempts : 5
91
- command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
86
+ command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --with="phpunit/phpunit:~${{ matrix.phpunit }}"
92
87
93
88
- name : Execute tests
94
89
run : vendor/bin/phpunit --display-deprecation ${{ matrix.stability == 'prefer-stable' && '--fail-on-deprecation' || '' }}
@@ -115,11 +110,13 @@ jobs:
115
110
fail-fast : true
116
111
matrix :
117
112
php : [8.2, 8.3, 8.4]
118
- phpunit : ['10.5', '11.0.1 ']
113
+ phpunit : ['10.5.35 ', '11.3.2', '12.0.0', '12.1.0 ']
119
114
stability : [prefer-lowest, prefer-stable]
120
115
exclude :
121
- - php : 8.4
122
- stability : prefer-lowest
116
+ - php : 8.2
117
+ phpunit : ' 12.0.0'
118
+ - php : 8.2
119
+ phpunit : ' 12.1.0'
123
120
124
121
name : PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - ${{ matrix.stability }} - Windows
125
122
@@ -143,20 +140,12 @@ jobs:
143
140
- name : Set Framework version
144
141
run : composer config version "11.x-dev"
145
142
146
- - name : Set PHPUnit
147
- uses : nick-fields/retry@v3
148
- with :
149
- timeout_minutes : 5
150
- max_attempts : 5
151
- command : composer require phpunit/phpunit:^${{ matrix.phpunit }} --dev --no-interaction --no-update
152
- shell : bash
153
-
154
143
- name : Install dependencies
155
144
uses : nick-fields/retry@v3
156
145
with :
157
146
timeout_minutes : 5
158
147
max_attempts : 5
159
- command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
148
+ command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --with="phpunit/phpunit:~${{ matrix.phpunit }}"
160
149
161
150
- name : Execute tests
162
151
run : vendor/bin/phpunit
0 commit comments