Skip to content

Commit e150f37

Browse files
authored
[12.x] Temporarily prevents PHPUnit 12.1 (#55297)
* [12.x] Temporarily prevents PHPUnit 12.1 Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> --------- Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 8bb7e9d commit e150f37

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,12 @@ jobs:
6767
- name: Set Framework version
6868
run: composer config version "12.x-dev"
6969

70-
- name: Set PHPUnit
71-
uses: nick-fields/retry@v3
72-
with:
73-
timeout_minutes: 5
74-
max_attempts: 5
75-
command: composer require phpunit/phpunit:^${{ matrix.phpunit }} --dev --no-interaction --no-update
76-
7770
- name: Install dependencies
7871
uses: nick-fields/retry@v3
7972
with:
8073
timeout_minutes: 5
8174
max_attempts: 5
82-
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
75+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --with="phpunit/phpunit:^${{ matrix.phpunit }}"
8376

8477
- name: Execute tests
8578
run: vendor/bin/phpunit --display-deprecation ${{ matrix.stability == 'prefer-stable' && '--fail-on-deprecation' || '' }}
@@ -134,20 +127,12 @@ jobs:
134127
- name: Set Framework version
135128
run: composer config version "12.x-dev"
136129

137-
- name: Set PHPUnit
138-
uses: nick-fields/retry@v3
139-
with:
140-
timeout_minutes: 5
141-
max_attempts: 5
142-
command: composer require phpunit/phpunit:^${{ matrix.phpunit }} --dev --no-interaction --no-update
143-
shell: bash
144-
145130
- name: Install dependencies
146131
uses: nick-fields/retry@v3
147132
with:
148133
timeout_minutes: 5
149134
max_attempts: 5
150-
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
135+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --with="phpunit/phpunit:^${{ matrix.phpunit }}"
151136

152137
- name: Execute tests
153138
run: vendor/bin/phpunit

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"pda/pheanstalk": "^5.0.6",
116116
"php-http/discovery": "^1.15",
117117
"phpstan/phpstan": "^2.0",
118-
"phpunit/phpunit": "^10.5.35|^11.5.3|^12.0.1",
118+
"phpunit/phpunit": "^10.5.35|^11.5.3|~12.0.1",
119119
"predis/predis": "^2.3",
120120
"resend/resend-php": "^0.10.0",
121121
"symfony/cache": "^7.2.0",

0 commit comments

Comments
 (0)