Skip to content

Commit

Permalink
Update MatrixListener.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Aug 18, 2023
1 parent 0bdea5c commit 291bec3
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions src/Listener/MatrixListener.php
Expand Up @@ -67,39 +67,39 @@ public function __invoke(MatrixEvent $generateMatrixEvent): void
$name = $tool->name();
$command = $tool->command();
$extensions = $tool->extensions();
if ($tool instanceof PHPUnit) {
foreach ($phpVersions as $phpVersion) {
if (! Semver::satisfies(PhpVersion::TO_STRING[$phpVersion], $constraints)) {
continue;
}

$isExperimental = $phpVersion === PhpVersion::DEV;

foreach (self::DEPENDENCIES as $dependency) {
$generateMatrixEvent->include(
new Job(
$name,
$command,
$extensions,
$dependency,
$phpVersion,
$isExperimental || $dependency === 'lowest'
)
);
}
// if ($tool instanceof PHPUnit) {
foreach ($phpVersions as $phpVersion) {
if (! Semver::satisfies(PhpVersion::TO_STRING[$phpVersion], $constraints)) {
continue;
}
continue;
}

$generateMatrixEvent->include(
new Job(
$name,
$tool->command(),
$tool->extensions(),
'locked',
PhpVersion::LATEST
)
);
$isExperimental = $phpVersion === PhpVersion::DEV;

foreach (self::DEPENDENCIES as $dependency) {
$generateMatrixEvent->include(
new Job(
$name,
$command,
$extensions,
$dependency,
$phpVersion,
$isExperimental || $dependency === 'lowest'
)
);
}
}
continue;
// }

// $generateMatrixEvent->include(
// new Job(
// $name,
// $tool->command(),
// $tool->extensions(),
// 'locked',
// PhpVersion::LATEST
// )
// );
}
}
}

0 comments on commit 291bec3

Please sign in to comment.