mirror of
https://github.com/ivuorinen/monolog-gdpr-filter.git
synced 2026-03-12 10:00:59 +00:00
* fix: remove xdebug-specific settings from phpunit.xml and composer.json Remove `<ini name="xdebug.mode" value="coverage"/>` from phpunit.xml and `XDEBUG_MODE=coverage` prefix from composer scripts. These fail when xdebug is not installed and are unnecessary when using PCOV for code coverage. * ci: switch from xdebug to pcov for code coverage Both test matrix and coverage jobs now use `coverage: pcov`, matching the existing test-coverage.yaml workflow. PCOV is faster for coverage-only use and avoids the xdebug dependency conflict. * build: replace xdebug with pcov in Docker setup Switch Docker development environment from xdebug to pcov for code coverage and remove the XDEBUG_MODE environment variable from docker-compose.yml. Standardizes on pcov across all environments.
36 lines
906 B
Docker
36 lines
906 B
Docker
FROM php:8.5-cli-alpine
|
|
|
|
# Install system dependencies
|
|
RUN apk add --no-cache \
|
|
git \
|
|
unzip \
|
|
curl \
|
|
libzip-dev \
|
|
icu-dev \
|
|
&& docker-php-ext-install \
|
|
zip \
|
|
intl \
|
|
pcntl
|
|
|
|
# Install Composer
|
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
|
|
|
# Install PCOV for code coverage
|
|
RUN apk add --no-cache $PHPIZE_DEPS \
|
|
&& pecl install pcov \
|
|
&& docker-php-ext-enable pcov
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Set recommended PHP settings for development and create non-root user
|
|
RUN echo "memory_limit=512M" >> /usr/local/etc/php/conf.d/docker-php-memory.ini \
|
|
&& echo "error_reporting=E_ALL" >> /usr/local/etc/php/conf.d/docker-php-errors.ini \
|
|
&& echo "display_errors=On" >> /usr/local/etc/php/conf.d/docker-php-errors.ini \
|
|
&& addgroup -g 1000 developer \
|
|
&& adduser -D -u 1000 -G developer developer
|
|
|
|
USER developer
|
|
|
|
CMD ["php", "-v"]
|