Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 846d161

Browse files
Test multiple PHPUnit versions
1 parent 855b82c commit 846d161

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

‎.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,21 @@ jobs:
9797
dependencies:
9898
- "lowest"
9999
- "highest"
100+
phpunit-version:
101+
- "^9.5"
102+
- "^10.5"
103+
- "^11.5"
104+
exclude:
105+
- php-version: "7.4"
106+
phpunit-version: "^10.5"
107+
- php-version: "8.0"
108+
phpunit-version: "^10.5"
109+
- php-version: "7.4"
110+
phpunit-version: "^11.5"
111+
- php-version: "8.0"
112+
phpunit-version: "^11.5"
113+
- php-version: "8.1"
114+
phpunit-version: "^11.5"
100115

101116
steps:
102117
- name: "Checkout"
@@ -108,6 +123,9 @@ jobs:
108123
coverage: "none"
109124
php-version: "${{ matrix.php-version }}"
110125

126+
- name: "Require specific PHPUnit version"
127+
run: "composer require --dev phpunit/phpunit:${{ matrix.phpunit-version }}"
128+
111129
- name: "Install lowest dependencies"
112130
if: ${{ matrix.dependencies == 'lowest' }}
113131
run: "composer update --prefer-lowest --no-interaction --no-progress"
@@ -136,6 +154,21 @@ jobs:
136154
dependencies:
137155
- "lowest"
138156
- "highest"
157+
phpunit-version:
158+
- "^9.5"
159+
- "^10.5"
160+
- "^11.5"
161+
exclude:
162+
- php-version: "7.4"
163+
phpunit-version: "^10.5"
164+
- php-version: "8.0"
165+
phpunit-version: "^10.5"
166+
- php-version: "7.4"
167+
phpunit-version: "^11.5"
168+
- php-version: "8.0"
169+
phpunit-version: "^11.5"
170+
- php-version: "8.1"
171+
phpunit-version: "^11.5"
139172

140173
steps:
141174
- name: "Checkout"
@@ -149,6 +182,9 @@ jobs:
149182
extensions: mbstring
150183
tools: composer:v2
151184

185+
- name: "Require specific PHPUnit version"
186+
run: "composer require --dev phpunit/phpunit:${{ matrix.phpunit-version }}"
187+
152188
- name: "Install lowest dependencies"
153189
if: ${{ matrix.dependencies == 'lowest' }}
154190
run: "composer update --prefer-lowest --no-interaction --no-progress"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /