@@ -40,11 +40,13 @@ jobs:
4040 fail-fast : true
4141 matrix :
4242 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' ]
4444 stability : [prefer-lowest, prefer-stable]
4545 exclude :
4646 - php : 8.2
4747 phpunit : ' 12.0.0'
48+ - php : 8.2
49+ phpunit : ' 12.1.0'
4850
4951 name : PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - ${{ matrix.stability }}
5052
@@ -76,19 +78,12 @@ jobs:
7678 shell : bash
7779 if : matrix.php >= 8.4
7880
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-
8681 - name : Install dependencies
8782 uses : nick-fields/retry@v3
8883 with :
8984 timeout_minutes : 5
9085 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 }}"
9287
9388 - name : Execute tests
9489 run : vendor/bin/phpunit --display-deprecation ${{ matrix.stability == 'prefer-stable' && '--fail-on-deprecation' || '' }}
@@ -115,11 +110,13 @@ jobs:
115110 fail-fast : true
116111 matrix :
117112 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 ']
119114 stability : [prefer-lowest, prefer-stable]
120115 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'
123120
124121 name : PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - ${{ matrix.stability }} - Windows
125122
@@ -143,20 +140,12 @@ jobs:
143140 - name : Set Framework version
144141 run : composer config version "11.x-dev"
145142
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-
154143 - name : Install dependencies
155144 uses : nick-fields/retry@v3
156145 with :
157146 timeout_minutes : 5
158147 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 }}"
160149
161150 - name : Execute tests
162151 run : vendor/bin/phpunit
0 commit comments