Skip to content

github-actions(deps): bump ergebnis/.github from 1.9.0 to 1.9.1 #2549

github-actions(deps): bump ergebnis/.github from 1.9.0 to 1.9.1

github-actions(deps): bump ergebnis/.github from 1.9.0 to 1.9.1 #2549

Triggered via pull request June 7, 2024 22:43
Status Success
Total duration 1m 41s
Artifacts

integrate.yaml

on: pull_request
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Compile Phar
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Code Coverage (7.4, locked)
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4.4.0/dist/codecov' failed with exit code 1
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L295
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (true === $input->getOption('diff') || true === $input->getOption('dry-run')) { $io->writeError(\sprintf('<error>%s is not normalized.</error>', $composerFile)); $diff = $this->differ->diff($json->encoded(), $normalized->encoded()); - $io->write(['', '<fg=yellow>---------- begin diff ----------</>', self::formatDiff($diff), '<fg=yellow>----------- end diff -----------</>', '']); + $io->write(['<fg=yellow>---------- begin diff ----------</>', self::formatDiff($diff), '<fg=yellow>----------- end diff -----------</>', '']); } if (true === $input->getOption('dry-run')) { return 1;
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L325
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if (true === $input->getOption('no-update-lock') || !$locker->isLocked()) { return 0; } - $io->write('<info>Updating lock file.</info>'); + $application = new Application(); $application->setAutoExit(false); return self::updateLockerInWorkingDirectory($application, $input, $output, \dirname($composerFile));
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L369
Escaped Mutant for Mutator "CastInt": --- Original +++ New @@ @@ if (null === $indentStyle) { throw new \RuntimeException(\sprintf('When using the indent-size option, an indent style (one of "%s") needs to be specified using the indent-style option.', \implode('", "', \array_keys(Normalizer\Format\Indent::CHARACTERS)))); } - if ((string) (int) $indentSize !== $indentSize || 1 > $indentSize) { + if ((string) $indentSize !== $indentSize || 1 > $indentSize) { throw new \RuntimeException(\sprintf('Indent size needs to be an integer greater than 0, but "%s" is not.', $indentSize)); } if (!\array_key_exists($indentStyle, Normalizer\Format\Indent::CHARACTERS)) {
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L448
Escaped Mutant for Mutator "GreaterThan": --- Original +++ New @@ @@ if (!\is_int($indentSize)) { throw new \RuntimeException(\sprintf('Indent size needs to be an integer, got %s instead.', \gettype($indentSize))); } - if (1 > $indentSize) { + if (1 >= $indentSize) { throw new \RuntimeException(\sprintf('Indent size needs to be an integer greater than 0, but %d is not.', $indentSize)); } $indentStyle = $configuration['indent-style'];
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L499
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ private static function formatDiff(string $diff) : string { $lines = \explode("\n", $diff); - $formatted = \array_map(static function (string $line) : string { - $replaced = \preg_replace(['/^(\\+.*)$/', '/^(-.*)$/'], ['<fg=green>$1</>', '<fg=red>$1</>'], $line); - if (!\is_string($replaced)) { - throw Exception\ShouldNotHappen::create(); - } - return $replaced; - }, $lines); + $formatted = $lines; return \implode("\n", $formatted); } /**
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L501
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ { $lines = \explode("\n", $diff); $formatted = \array_map(static function (string $line) : string { - $replaced = \preg_replace(['/^(\\+.*)$/', '/^(-.*)$/'], ['<fg=green>$1</>', '<fg=red>$1</>'], $line); + $replaced = \preg_replace(['/^(-.*)$/'], ['<fg=green>$1</>', '<fg=red>$1</>'], $line); if (!\is_string($replaced)) { throw Exception\ShouldNotHappen::create(); }
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L538
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Input\InputInterface $input, Console\Output\OutputInterface $output, string $workingDirectory) : int { - $parameters = ['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--working-dir' => $workingDirectory]; + $parameters = ['command' => 'update', '--ignore-platform-reqs' => false, '--lock' => true, '--no-autoloader' => true, '--working-dir' => $workingDirectory]; if ($input->hasParameterOption('--no-ansi')) { $parameters[] = '--no-ansi'; }
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L539
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Input\InputInterface $input, Console\Output\OutputInterface $output, string $workingDirectory) : int { - $parameters = ['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--working-dir' => $workingDirectory]; + $parameters = ['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => false, '--no-autoloader' => true, '--working-dir' => $workingDirectory]; if ($input->hasParameterOption('--no-ansi')) { $parameters[] = '--no-ansi'; }
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L540
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Input\InputInterface $input, Console\Output\OutputInterface $output, string $workingDirectory) : int { - $parameters = ['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--working-dir' => $workingDirectory]; + $parameters = ['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => false, '--working-dir' => $workingDirectory]; if ($input->hasParameterOption('--no-ansi')) { $parameters[] = '--no-ansi'; }