From 042fe2a613ff7dc3f3a3dde14b3b8b481aa058a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 3 Jan 2022 17:39:28 +0100 Subject: [PATCH] Fix: Set XDEBUG_MODE to coverage when collecting code coverage --- .github/workflows/integrate.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 698f4ed0..ece1ea33 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -55,6 +55,8 @@ jobs: dependencies: "${{ matrix.dependencies }}" - name: "Collect code coverage with Xdebug and phpunit/phpunit" + env: + XDEBUG_MODE: "coverage" run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/phpunit/logs/clover.xml" - name: "Send code coverage report to Codecov.io" @@ -209,6 +211,8 @@ jobs: dependencies: "${{ matrix.dependencies }}" - name: "Run mutation tests with Xdebug and infection/infection" + env: + XDEBUG_MODE: "coverage" run: "vendor/bin/infection --configuration=infection.json" static-code-analysis: