File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,3 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
8
8
ENV COMPOSER_ALLOW_SUPERUSER=1
9
9
ENV COMPOSER_HTACCESS_PROTECT=0
10
10
ENV COMPOSER_CACHE_DIR=/.composer
11
-
12
- # install PHP extension pcov
13
- RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
14
- && mkdir -p /usr/src/php/ext/pcov && curl -fsSL https://pecl.php.net/get/pcov | tar xvz -C /usr/src/php/ext/pcov --strip 1 \
15
- && docker-php-ext-install pcov \
16
- && docker-php-ext-enable pcov \
17
- && rm -Rf /usr/src/php/ext/pcov \
18
- && apk del --no-cache .build-deps
Original file line number Diff line number Diff line change 95
95
- name : Run Unit Test
96
96
run : |
97
97
if [ "${{ matrix.CODE_COVERAGE }}" == "true" ]; then
98
- docker run --rm -u "$(id -u):$(id -g)" -v "$(pwd):/workdir" 'test:${{ matrix.PHP_VERSION }}' php -d 'zend.assertions=1' -d 'pcov.enabled=1' ./vendor/bin/phpunit --coverage-clover=.clover.xml
98
+ docker run --rm -u "$(id -u):$(id -g)" -v "$(pwd):/workdir" 'test:${{ matrix.PHP_VERSION }}' \
99
+ apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
100
+ && mkdir -p /usr/src/php/ext/pcov && curl -fsSL https://pecl.php.net/get/pcov | tar xvz -C /usr/src/php/ext/pcov --strip 1 \
101
+ && docker-php-ext-install pcov \
102
+ && docker-php-ext-enable pcov \
103
+ && php -d 'zend.assertions=1' -d 'pcov.enabled=1' ./vendor/bin/phpunit --coverage-clover=.clover.xml
99
104
else
100
105
docker run --rm -u "$(id -u):$(id -g)" -v "$(pwd):/workdir" 'test:${{ matrix.PHP_VERSION }}' php -d 'zend.assertions=1' ./vendor/bin/phpunit
101
106
fi
You can’t perform that action at this time.
0 commit comments