Skip to content

Commit d6dde05

Browse files
authored
Merge pull request #176 from ergebnis/feature/synchronize
Enhancement: Synchronize with ergebnis/php-library-template
2 parents d35abbe + 20acc32 commit d6dde05

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/integrate.yaml

+5-8
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ jobs:
262262
- name: "Install PHP with extensions"
263263
uses: "shivammathur/[email protected]"
264264
with:
265-
coverage: "xdebug"
265+
coverage: "pcov"
266266
extensions: "${{ env.PHP_EXTENSIONS }}"
267267
php-version: "${{ matrix.php-version }}"
268268

@@ -284,11 +284,8 @@ jobs:
284284
with:
285285
dependencies: "${{ matrix.dependencies }}"
286286

287-
- name: "Dump Xdebug filter with phpunit/phpunit"
288-
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php"
289-
290-
- name: "Collect code coverage with Xdebug and phpunit/phpunit"
291-
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/logs/clover.xml --prepend=.build/phpunit/xdebug-filter.php"
287+
- name: "Collect code coverage with pcov and phpunit/phpunit"
288+
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/logs/clover.xml"
292289

293290
- name: "Send code coverage report to Codecov.io"
294291
env:
@@ -315,7 +312,7 @@ jobs:
315312
- name: "Install PHP with extensions"
316313
uses: "shivammathur/[email protected]"
317314
with:
318-
coverage: "xdebug"
315+
coverage: "pcov"
319316
extensions: "${{ env.PHP_EXTENSIONS }}"
320317
php-version: "${{ matrix.php-version }}"
321318

@@ -334,7 +331,7 @@ jobs:
334331
with:
335332
dependencies: "${{ matrix.dependencies }}"
336333

337-
- name: "Run mutation tests with Xdebug and infection/infection"
334+
- name: "Run mutation tests with pcov and infection/infection"
338335
run: "vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=${{ env.MIN_COVERED_MSI }} --min-msi=${{ env.MIN_MSI }}"
339336

340337
merge:

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ it: coding-standards static-code-analysis tests ## Runs the coding-standards, st
77
.PHONY: code-coverage
88
code-coverage: vendor ## Collects coverage from running unit tests with phpunit/phpunit
99
mkdir -p .build/phpunit
10-
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php
11-
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text --prepend=.build/phpunit/xdebug-filter.php
10+
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text
1211

1312
.PHONY: coding-standards
1413
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

0 commit comments

Comments
 (0)