Update metadata and build config #297
ci.yaml
on: push
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
3s
Annotations
23 warnings
Static analysis (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Coding standard (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 8.2, --ignore-platform-req=php+, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 7.4, --prefer-lowest --prefer-stable, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L71
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$dependencies = $this->getDependencies();
$file = $this->getFile($names['namespace'], $names['class'], $dependencies['schema'], $dependencies['switches'], $dependencies['modules']);
FileSystem::write($loaderSchema->getFile(), (string) $file);
- FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? true : Neon::BLOCK));
+
return $loaderSchema;
}
public function generate() : BaseLoader
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L75
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$dependencies = $this->getDependencies();
$file = $this->getFile($names['namespace'], $names['class'], $dependencies['schema'], $dependencies['switches'], $dependencies['modules']);
FileSystem::write($loaderSchema->getFile(), (string) $file);
- FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? true : Neon::BLOCK));
+ FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? Neon::BLOCK : true));
return $loaderSchema;
}
public function generate() : BaseLoader
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L76
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$dependencies = $this->getDependencies();
$file = $this->getFile($names['namespace'], $names['class'], $dependencies['schema'], $dependencies['switches'], $dependencies['modules']);
FileSystem::write($loaderSchema->getFile(), (string) $file);
- FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? true : Neon::BLOCK));
+ FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? false : Neon::BLOCK));
return $loaderSchema;
}
public function generate() : BaseLoader
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L114
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
$itemsByPriority = [ConfigFilePriority::first()->name => [], ConfigFilePriority::normal()->name => [], ConfigFilePriority::last()->name => []];
foreach ($modules as $module) {
$package = $module->getData();
- $packageName = str_replace('/', '_', $package->getName());
+ $packageName = $package->getName();
$packageDirRelative = $package->getRelativePath();
$packageSchema = $module->getSchema();
$modulesMeta[$packageName] = [LoaderKey::MetaDir => $packageDirRelative];
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L122
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
$packageDirRelative = $package->getRelativePath();
$packageSchema = $module->getSchema();
$modulesMeta[$packageName] = [LoaderKey::MetaDir => $packageDirRelative];
- foreach ($packageSchema->getConfigFiles() as $configFile) {
+ foreach (array() as $configFile) {
// Skip configuration if required package is not installed
foreach ($configFile->getRequiredPackages() as $requiredPackage) {
if ($this->modules->getModule($requiredPackage) === null) {
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L147
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
$itemsByPriority[$configFile->getPriority()->name][] = $item;
}
}
- $rootName = str_replace('/', '_', $this->modules->getRootModule()->getData()->getName());
+ $rootName = $this->modules->getRootModule()->getData()->getName();
$modulesMeta['root'] = $modulesMeta[$rootName];
unset($modulesMeta['__root__']);
$schema = array_merge($itemsByPriority[ConfigFilePriority::first()->name], $itemsByPriority[ConfigFilePriority::normal()->name], $itemsByPriority[ConfigFilePriority::last()->name]);
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L151
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$rootName = str_replace('/', '_', $this->modules->getRootModule()->getData()->getName());
$modulesMeta['root'] = $modulesMeta[$rootName];
unset($modulesMeta['__root__']);
- $schema = array_merge($itemsByPriority[ConfigFilePriority::first()->name], $itemsByPriority[ConfigFilePriority::normal()->name], $itemsByPriority[ConfigFilePriority::last()->name]);
+ $schema = $itemsByPriority[ConfigFilePriority::first()->name];
return ['schema' => $schema, 'switches' => $switches, 'modules' => $modulesMeta];
}
/**
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L151
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$rootName = str_replace('/', '_', $this->modules->getRootModule()->getData()->getName());
$modulesMeta['root'] = $modulesMeta[$rootName];
unset($modulesMeta['__root__']);
- $schema = array_merge($itemsByPriority[ConfigFilePriority::first()->name], $itemsByPriority[ConfigFilePriority::normal()->name], $itemsByPriority[ConfigFilePriority::last()->name]);
+ $schema = $itemsByPriority[ConfigFilePriority::normal()->name];
return ['schema' => $schema, 'switches' => $switches, 'modules' => $modulesMeta];
}
/**
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L151
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$rootName = str_replace('/', '_', $this->modules->getRootModule()->getData()->getName());
$modulesMeta['root'] = $modulesMeta[$rootName];
unset($modulesMeta['__root__']);
- $schema = array_merge($itemsByPriority[ConfigFilePriority::first()->name], $itemsByPriority[ConfigFilePriority::normal()->name], $itemsByPriority[ConfigFilePriority::last()->name]);
+ $schema = $itemsByPriority[ConfigFilePriority::last()->name];
return ['schema' => $schema, 'switches' => $switches, 'modules' => $modulesMeta];
}
/**
|
Test for mutants (ubuntu-latest, 8.1):
src/Loader/LoaderGenerator.php#L171
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
private function getSwitches(array $modules) : array
{
$switchesByPackage = [];
- foreach ($modules as $module) {
+ foreach (array() as $module) {
$switchesByPackage[] = $module->getSchema()->getSwitches();
}
return array_merge(...$switchesByPackage);
|
Tests (macos-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (macos-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (windows-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (macos-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (windows-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (windows-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6, actions/cache@v3. 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 | |
---|---|---|
Logs - Mutations
Expired
|
7.96 KB |
|