diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 793db80c..418021fd 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -275,7 +275,7 @@ jobs: - name: "Install PHP with extensions" uses: "shivammathur/setup-php@2.4.3" with: - coverage: "xdebug" + coverage: "pcov" extensions: "${{ env.PHP_EXTENSIONS }}" php-version: "${{ matrix.php-version }}" @@ -300,11 +300,8 @@ jobs: with: dependencies: "${{ matrix.dependencies }}" - - name: "Dump Xdebug filter with phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php" - - - name: "Collect code coverage with Xdebug and phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/logs/clover.xml --prepend=.build/phpunit/xdebug-filter.php" + - name: "Collect code coverage with pcov and phpunit/phpunit" + run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/logs/clover.xml" - name: "Send code coverage report to Codecov.io" env: @@ -331,7 +328,7 @@ jobs: - name: "Install PHP with extensions" uses: "shivammathur/setup-php@2.4.3" with: - coverage: "xdebug" + coverage: "pcov" extensions: "${{ env.PHP_EXTENSIONS }}" php-version: "${{ matrix.php-version }}" @@ -353,7 +350,7 @@ jobs: with: dependencies: "${{ matrix.dependencies }}" - - name: "Run mutation tests with Xdebug and infection/infection" + - name: "Run mutation tests with pcov and infection/infection" run: "vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=${{ env.MIN_COVERED_MSI }} --min-msi=${{ env.MIN_MSI }}" merge: diff --git a/Makefile b/Makefile index 5fd2aca0..e799be05 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,7 @@ it: coding-standards static-code-analysis tests ## Runs the coding-standards, st .PHONY: code-coverage code-coverage: vendor ## Collects coverage from running unit tests with phpunit/phpunit mkdir -p .build/phpunit - vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php - vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text --prepend=.build/phpunit/xdebug-filter.php + vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text .PHONY: coding-standards coding-standards: vendor ## Normalizes composer.json with ergebnis/composer-normalize, lints YAML files with yamllint and fixes code style issues with friendsofphp/php-cs-fixer