Skip to content

Commit d992022

Browse files
Thomas FinkThomas Fink
Thomas Fink
authored and
Thomas Fink
committed
chore(ZMS): fix zmsslim coverage
1 parent e2ccdc6 commit d992022

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: unit tests
33
on:
44
workflow_call:
55

6-
env:
7-
XDEBUG_MODE: coverage
8-
96
jobs:
107
module-test:
118
runs-on: ubuntu-latest
@@ -18,12 +15,22 @@ jobs:
1815
run: |
1916
cd "${{ matrix.module }}"
2017
composer install --no-progress --prefer-dist --optimize-autoloader
21-
- name: Run Unit Tests with Coverage
18+
- name: Run Unit Tests with Coverage (zmsslim)
19+
if: matrix.module == 'zmsslim'
20+
env:
21+
XDEBUG_MODE: coverage
2222
run: |
2323
cd "${{ matrix.module }}"
2424
mkdir -p coverage
25-
php -dzend_extension=xdebug.so -dmemory_limit=-1 ./vendor/bin/phpunit \
26-
--coverage-html coverage/html --coverage-clover coverage/clover.xml
25+
XDEBUG_MODE=coverage php -dzend_extension=xdebug.so -dxdebug.mode=coverage -dmemory_limit=-1 \
26+
./vendor/bin/phpunit --coverage-html coverage/html --coverage-clover coverage/clover.xml
27+
- name: Run Unit Tests (other modules)
28+
if: matrix.module != 'zmsslim'
29+
run: |
30+
cd "${{ matrix.module }}"
31+
mkdir -p coverage
32+
php -dzend_extension=xdebug.so -dmemory_limit=-1 \
33+
./vendor/bin/phpunit --coverage-html coverage/html --coverage-clover coverage/clover.xml
2734
- name: Upload Coverage
2835
uses: actions/upload-artifact@v4
2936
with:

0 commit comments

Comments
 (0)