Skip to content

Commit 488c067

Browse files
committed
Use different syntax for different PHPUnit versions
1 parent 5aa0de5 commit 488c067

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,24 @@ jobs:
9595
ENABLE_SECOND_LEVEL_CACHE: 0
9696
ENABLE_NATIVE_LAZY_OBJECTS: ${{ matrix.native_lazy }}
9797

98-
- name: "Run PHPUnit with Second Level Cache"
98+
- name: "Run PHPUnit with Second Level Cache and PHPUnit 10"
99+
run: |
100+
vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml \
101+
--exclude-group=performance,non-cacheable,locking_functional \
102+
--coverage-clover=coverage-cache.xml
103+
if: "${{ matrix.php-version == '8.1' }}"
104+
env:
105+
ENABLE_SECOND_LEVEL_CACHE: 1
106+
ENABLE_NATIVE_LAZY_OBJECTS: ${{ matrix.native_lazy }}
107+
108+
- name: "Run PHPUnit with Second Level Cache and PHPUnit 11"
99109
run: |
100110
vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml \
101111
--exclude-group=performance \
102112
--exclude-group=non-cacheable \
103113
--exclude-group=locking_functional \
104114
--coverage-clover=coverage-cache.xml
115+
if: "${{ matrix.php-version != '8.1' }}"
105116
env:
106117
ENABLE_SECOND_LEVEL_CACHE: 1
107118
ENABLE_NATIVE_LAZY_OBJECTS: ${{ matrix.native_lazy }}
@@ -324,13 +335,22 @@ jobs:
324335
env:
325336
ENABLE_SECOND_LEVEL_CACHE: 0
326337

327-
- name: "Run PHPUnit with Second Level Cache"
338+
- name: "Run PHPUnit with Second Level Cache and PHPUnit 10"
339+
run: |
340+
vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml \
341+
--exclude-group=performance,non-cacheable,locking_functional \
342+
--coverage-clover=coverage-no-cache.xml"
343+
if: "${{ matrix.php-version == '8.1' }}"
344+
env:
345+
ENABLE_SECOND_LEVEL_CACHE: 1
346+
- name: "Run PHPUnit with Second Level Cache and PHPUnit 11"
328347
run: |
329348
vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml \
330349
--exclude-group=performance \
331350
--exclude-group=non-cacheable \
332351
--exclude-group=locking_functional \
333352
--coverage-clover=coverage-no-cache.xml"
353+
if: "${{ matrix.php-version != '8.1' }}"
334354
env:
335355
ENABLE_SECOND_LEVEL_CACHE: 1
336356

0 commit comments

Comments
 (0)