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:
parent
06172740cd
commit
52c629c331
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user