Skip to content

Commit de1b71a

Browse files
committed
chore: include only a subset of node versions per PHP version
1 parent c260cce commit de1b71a

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

matrix.php

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,30 @@ function node_version_suffix(?string $nodeVersion): string {
3232
$disallowedVersions = ['8.2.20', '8.3.8'];
3333
$rcVersions = [];
3434

35-
$supportedNodeVersions = [null, '22', '24'];
35+
$supportedNodeVersions = [
36+
'8.1' => [
37+
null,
38+
],
39+
'8.2' => [
40+
null,
41+
],
42+
'8.3' => [
43+
null,
44+
'22',
45+
],
46+
'8.4' => [
47+
null,
48+
'22',
49+
'24',
50+
],
51+
];
3652

3753
$data = [];
3854

3955
$versionRegex ='/^(?<version>\d\.\d\.\d{1,}(RC\d)?)/m';
4056

41-
42-
foreach ($supportedNodeVersions as $supportedNodeVersion) {
43-
foreach ($supportedVersions as $supportedVersion)
44-
{
45-
57+
foreach ($supportedVersions as $supportedVersion) {
58+
foreach ($supportedNodeVersions[$supportedVersion] as $supportedNodeVersion) {
4659
$curVersion = null;
4760
$patchVersion = null;
4861
$rcVersion = null;

0 commit comments

Comments
 (0)