Skip to content

Commit df16d7a

Browse files
committed
Test multiple PHPUnit versions
1 parent 5652867 commit df16d7a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ jobs:
9797
dependencies:
9898
- "lowest"
9999
- "highest"
100+
phpunit-version:
101+
- "^9.5"
102+
- "^10.5"
103+
- "^11.5"
100104

101105
steps:
102106
- name: "Checkout"
@@ -108,6 +112,9 @@ jobs:
108112
coverage: "none"
109113
php-version: "${{ matrix.php-version }}"
110114

115+
- name: "Require specific PHPUnit version"
116+
run: "composer require --dev phpunit/phpunit:${{ matrix.phpunit-version }}"
117+
111118
- name: "Install lowest dependencies"
112119
if: ${{ matrix.dependencies == 'lowest' }}
113120
run: "composer update --prefer-lowest --no-interaction --no-progress"
@@ -136,6 +143,10 @@ jobs:
136143
dependencies:
137144
- "lowest"
138145
- "highest"
146+
phpunit-version:
147+
- "^9.5"
148+
- "^10.5"
149+
- "^11.5"
139150

140151
steps:
141152
- name: "Checkout"
@@ -149,6 +160,9 @@ jobs:
149160
extensions: mbstring
150161
tools: composer:v2
151162

163+
- name: "Require specific PHPUnit version"
164+
run: "composer require --dev phpunit/phpunit:${{ matrix.phpunit-version }}"
165+
152166
- name: "Install lowest dependencies"
153167
if: ${{ matrix.dependencies == 'lowest' }}
154168
run: "composer update --prefer-lowest --no-interaction --no-progress"

0 commit comments

Comments
 (0)