Skip to content

Add new QR code config options #233

Add new QR code config options

Add new QR code config options #233

Triggered via pull request February 19, 2024 22:02
Status Success
Total duration 1m 29s
Artifacts 2

ci.yml

on: pull_request
Matrix: ci / unit-tests
Matrix: ci / static-analysis
Matrix: ci / mutation-tests
Matrix: ci / upload-coverage
ci  /  delete-artifacts
2s
ci / delete-artifacts
Fit to window
Zoom out
Zoom in

Annotations

22 warnings
ci / upload-coverage (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L34
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ protected function execute(InputInterface $input, OutputInterface $output) : int { $io = new SymfonyStyle($input, $output); - $io->text(['<info>Welcome to Shlink!!</info>', 'This tool will guide you through the installation process.']); + $io->text(['This tool will guide you through the installation process.']); // Check if a cached config file exists and drop it if so $this->assetsHandler->dropCachedConfigIfAny($io); $importedConfig = $this->resolvePreviousConfig($io);
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L34
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ protected function execute(InputInterface $input, OutputInterface $output) : int { $io = new SymfonyStyle($input, $output); - $io->text(['<info>Welcome to Shlink!!</info>', 'This tool will guide you through the installation process.']); + // Check if a cached config file exists and drop it if so $this->assetsHandler->dropCachedConfigIfAny($io); $importedConfig = $this->resolvePreviousConfig($io);
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L51
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $normalizedConfig = Utils::normalizeAndKeepEnvVarKeys($config); // Generate config params files $this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false); - $io->text('<info>Custom configuration properly generated!</info>'); + $io->newLine(); if (!$this->execInitCommand($io, $importedConfig)) { return -1;
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L52
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ // Generate config params files $this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false); $io->text('<info>Custom configuration properly generated!</info>'); - $io->newLine(); + if (!$this->execInitCommand($io, $importedConfig)) { return -1; }
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L54
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false); $io->text('<info>Custom configuration properly generated!</info>'); $io->newLine(); - if (!$this->execInitCommand($io, $importedConfig)) { + if ($this->execInitCommand($io, $importedConfig)) { return -1; } $io->success('Installation complete!');
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L58
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if (!$this->execInitCommand($io, $importedConfig)) { return -1; } - $io->success('Installation complete!'); + return 0; } private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L59
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return -1; } $io->success('Installation complete!'); - return 0; + return -1; } private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig {
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L59
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return -1; } $io->success('Installation complete!'); - return 0; + return 1; } private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig {
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L85
Escaped Mutant for Mutator "NullSafeMethodCall": --- Original +++ New @@ @@ if (!$isUpdate) { $input[InitOption::INITIAL_API_KEY->asCliFlag()] = null; } - $command = $this->getApplication()?->find(InitCommand::NAME); + $command = $this->getApplication()->find(InitCommand::NAME); $exitCode = $command?->run(new ArrayInput($input), $io); return $exitCode === 0; } protected abstract function isUpdate() : bool; }
ci / mutation-tests (8.3): src/Command/AbstractInstallCommand.php#L86
Escaped Mutant for Mutator "NullSafeMethodCall": --- Original +++ New @@ @@ $input[InitOption::INITIAL_API_KEY->asCliFlag()] = null; } $command = $this->getApplication()?->find(InitCommand::NAME); - $exitCode = $command?->run(new ArrayInput($input), $io); + $exitCode = $command->run(new ArrayInput($input), $io); return $exitCode === 0; } protected abstract function isUpdate() : bool; }
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L34
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ protected function execute(InputInterface $input, OutputInterface $output) : int { $io = new SymfonyStyle($input, $output); - $io->text(['<info>Welcome to Shlink!!</info>', 'This tool will guide you through the installation process.']); + $io->text(['This tool will guide you through the installation process.']); // Check if a cached config file exists and drop it if so $this->assetsHandler->dropCachedConfigIfAny($io); $importedConfig = $this->resolvePreviousConfig($io);
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L34
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ protected function execute(InputInterface $input, OutputInterface $output) : int { $io = new SymfonyStyle($input, $output); - $io->text(['<info>Welcome to Shlink!!</info>', 'This tool will guide you through the installation process.']); + // Check if a cached config file exists and drop it if so $this->assetsHandler->dropCachedConfigIfAny($io); $importedConfig = $this->resolvePreviousConfig($io);
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L51
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $normalizedConfig = Utils::normalizeAndKeepEnvVarKeys($config); // Generate config params files $this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false); - $io->text('<info>Custom configuration properly generated!</info>'); + $io->newLine(); if (!$this->execInitCommand($io, $importedConfig)) { return -1;
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L52
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ // Generate config params files $this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false); $io->text('<info>Custom configuration properly generated!</info>'); - $io->newLine(); + if (!$this->execInitCommand($io, $importedConfig)) { return -1; }
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L54
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false); $io->text('<info>Custom configuration properly generated!</info>'); $io->newLine(); - if (!$this->execInitCommand($io, $importedConfig)) { + if ($this->execInitCommand($io, $importedConfig)) { return -1; } $io->success('Installation complete!');
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L58
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if (!$this->execInitCommand($io, $importedConfig)) { return -1; } - $io->success('Installation complete!'); + return 0; } private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L59
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return -1; } $io->success('Installation complete!'); - return 0; + return -1; } private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig {
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L59
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return -1; } $io->success('Installation complete!'); - return 0; + return 1; } private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig {
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L85
Escaped Mutant for Mutator "NullSafeMethodCall": --- Original +++ New @@ @@ if (!$isUpdate) { $input[InitOption::INITIAL_API_KEY->asCliFlag()] = null; } - $command = $this->getApplication()?->find(InitCommand::NAME); + $command = $this->getApplication()->find(InitCommand::NAME); $exitCode = $command?->run(new ArrayInput($input), $io); return $exitCode === 0; } protected abstract function isUpdate() : bool; }
ci / mutation-tests (8.2): src/Command/AbstractInstallCommand.php#L86
Escaped Mutant for Mutator "NullSafeMethodCall": --- Original +++ New @@ @@ $input[InitOption::INITIAL_API_KEY->asCliFlag()] = null; } $command = $this->getApplication()?->find(InitCommand::NAME); - $exitCode = $command?->run(new ArrayInput($input), $io); + $exitCode = $command->run(new ArrayInput($input), $io); return $exitCode === 0; } protected abstract function isUpdate() : bool; }
ci / delete-artifacts
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: geekyeggo/delete-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
build-8.2 Expired
259 KB
build-8.3 Expired
259 KB