Skip to content

Commit 61efbb0

Browse files
committed
ci: fix #12 phpunit need xdebug mode coverage
1 parent 7e68b16 commit 61efbb0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/laravel-6.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
apt install -y libzip-dev unzip
2222
pecl install xdebug
2323
docker-php-ext-enable xdebug
24+
cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
25+
echo 'xdebug.mode=coverage' >> /usr/local/etc/php/php.ini
2426
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2527
- name: PHPUnit
2628
run: |

.github/workflows/laravel-7.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
apt install -y libzip-dev unzip
2222
pecl install xdebug
2323
docker-php-ext-enable xdebug
24+
cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
25+
echo 'xdebug.mode=coverage' >> /usr/local/etc/php/php.ini
2426
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2527
- name: PHPUnit
2628
run: |

.github/workflows/laravel-8.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
apt install -y libzip-dev unzip
2222
pecl install xdebug
2323
docker-php-ext-enable xdebug
24+
cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
25+
echo 'xdebug.mode=coverage' >> /usr/local/etc/php/php.ini
2426
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2527
- name: PHPUnit
2628
run: |

0 commit comments

Comments
 (0)