Skip to content

Commit 9776ba7

Browse files
authored
Removes PHPUnit 9 testing (#46186)
1 parent 8f0567e commit 9776ba7

File tree

3 files changed

+5
-72
lines changed

3 files changed

+5
-72
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ jobs:
4040
fail-fast: true
4141
matrix:
4242
php: [8.1, 8.2]
43-
phpunit: ['9.5.8', '10.0']
4443
stability: [prefer-lowest, prefer-stable]
4544

46-
name: PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - ${{ matrix.stability }}
45+
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
4746

4847
steps:
4948
- name: Checkout code
@@ -76,32 +75,14 @@ jobs:
7675
command: composer require guzzlehttp/guzzle:^7.5 guzzlehttp/psr7:^2.4 predis/predis:^2.0.2 --no-interaction --no-update
7776
if: matrix.php >= 8.2
7877

79-
- name: Set PHPUnit
80-
uses: nick-fields/retry@v2
81-
with:
82-
timeout_minutes: 5
83-
max_attempts: 5
84-
command: composer require phpunit/phpunit:~${{ matrix.phpunit }} --dev --no-interaction --no-update
85-
8678
- name: Install dependencies
8779
uses: nick-fields/retry@v2
8880
with:
8981
timeout_minutes: 5
9082
max_attempts: 5
9183
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
9284

93-
- name: Execute tests against PHPUnit ^9
94-
run: vendor/bin/phpunit --verbose --configuration phpunit9.xml.dist
95-
env:
96-
DB_PORT: ${{ job.services.mysql.ports[3306] }}
97-
DB_USERNAME: root
98-
DYNAMODB_CACHE_TABLE: laravel_dynamodb_test
99-
DYNAMODB_ENDPOINT: "http://localhost:8888"
100-
AWS_ACCESS_KEY_ID: random_key
101-
AWS_SECRET_ACCESS_KEY: random_secret
102-
if: matrix.phpunit != '10.0'
103-
104-
- name: Execute tests against PHPUnit ^10
85+
- name: Execute tests
10586
run: vendor/bin/phpunit
10687
env:
10788
DB_PORT: ${{ job.services.mysql.ports[3306] }}
@@ -110,7 +91,6 @@ jobs:
11091
DYNAMODB_ENDPOINT: "http://localhost:8888"
11192
AWS_ACCESS_KEY_ID: random_key
11293
AWS_SECRET_ACCESS_KEY: random_secret
113-
if: matrix.phpunit == '10.0'
11494

11595
- name: Store artifacts
11696
uses: actions/upload-artifact@v3
@@ -127,10 +107,9 @@ jobs:
127107
fail-fast: true
128108
matrix:
129109
php: [8.1, 8.2]
130-
phpunit: ['9.5.8', '10.0']
131110
stability: [prefer-lowest, prefer-stable]
132111

133-
name: PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - ${{ matrix.stability }} - Windows
112+
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows
134113

135114
steps:
136115
- name: Set git to use LF
@@ -164,33 +143,18 @@ jobs:
164143
command: composer require guzzlehttp/guzzle:~7.5 guzzlehttp/psr7:~2.4 predis/predis:~2.0.2 --no-interaction --no-update
165144
if: matrix.php >= 8.2
166145

167-
- name: Set PHPUnit
168-
uses: nick-fields/retry@v2
169-
with:
170-
timeout_minutes: 5
171-
max_attempts: 5
172-
command: composer require phpunit/phpunit:~${{ matrix.phpunit }} --dev --no-interaction --no-update
173-
174146
- name: Install dependencies
175147
uses: nick-fields/retry@v2
176148
with:
177149
timeout_minutes: 5
178150
max_attempts: 5
179151
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
180152

181-
- name: Execute tests against PHPUnit ^9
182-
run: vendor/bin/phpunit --verbose --configuration phpunit9.xml.dist
183-
env:
184-
AWS_ACCESS_KEY_ID: random_key
185-
AWS_SECRET_ACCESS_KEY: random_secret
186-
if: matrix.phpunit != '10.0'
187-
188-
- name: Execute tests against PHPUnit ^10
153+
- name: Execute tests
189154
run: vendor/bin/phpunit
190155
env:
191156
AWS_ACCESS_KEY_ID: random_key
192157
AWS_SECRET_ACCESS_KEY: random_secret
193-
if: matrix.phpunit == '10.0'
194158

195159
- name: Store artifacts
196160
uses: actions/upload-artifact@v3

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"pda/pheanstalk": "^4.0",
108108
"phpstan/phpdoc-parser": "^1.15",
109109
"phpstan/phpstan": "^1.4.7",
110-
"phpunit/phpunit": "^9.6.0 || ^10.0.7",
110+
"phpunit/phpunit": "^10.0.7",
111111
"predis/predis": "^2.0.2",
112112
"symfony/cache": "^6.2",
113113
"symfony/http-client": "^6.2.4"

phpunit9.xml.dist

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)