Skip to content

Commit 68daa6a

Browse files
staabmondrejmirtes
authored andcommitted
configure github action path mapping
1 parent cd84239 commit 68daa6a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎coverage-guard.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
$config = new Config();
1212

13+
// Replace prefix of absolute paths in coverage files
14+
// Handy if you want to reuse clover.xml generated in CI
15+
$config->addCoveragePathMapping('/home/runner/work/phpstan-src/phpstan-src', __DIR__);
16+
1317
// The coverage report is produced by PHPUnit/paratest on the same runner that
1418
// runs the gate, so the absolute file paths inside clover.xml already live
1519
// under this directory — git root is enough, no path mapping needed.

0 commit comments

Comments
 (0)