1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

infer --debug in GHA

This commit is contained in:
Roland Franssen :) 2023-07-01 13:48:58 +02:00 committed by GitHub
parent 06172740cd
commit 52c629c331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,6 +183,11 @@ final class Psalm
throw new RuntimeException('Failed to parse CLI options');
}
// debug CI environment
if (!in_array('--debug', $option, true) && 'true' === getenv('GITHUB_ACTIONS') && '1' === getenv('RUNNER_DEBUG'))) {
array_unshift('--debug', $options);
}
self::forwardCliCall($options, $argv);
self::validateCliArguments($args);