Skip to content

Commit 91f03e6

Browse files
ENH Update list of installer to repo minor versions. (#120)
Add CMS 6.0
1 parent d3a3bb2 commit 91f03e6

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

consts.php

+38
Original file line numberDiff line numberDiff line change
@@ -571,4 +571,42 @@
571571
'silverstripe-versionfeed' => '3.2',
572572
'silverstripe-webauthn-authenticator' => '5.3',
573573
],
574+
'6.0' => [
575+
'recipe-plugin' => '2.0',
576+
'silverstripe-advancedworkflow' => '7.0',
577+
'silverstripe-blog' => '5.0',
578+
'silverstripe-crontask' => '4.0',
579+
'silverstripe-developer-docs' => '6.0',
580+
'silverstripe-dynamodb' => '6.0',
581+
'silverstripe-elemental' => '6.0',
582+
'silverstripe-elemental-userforms' => '5.0',
583+
'silverstripe-fluent' => '8.0',
584+
'silverstripe-graphql' => '6.0',
585+
'silverstripe-gridfield-bulk-editing-tools' => '5.0',
586+
'silverstripe-gridfieldextensions' => '5.0',
587+
'silverstripe-gridfieldqueuedexport' => '4.0',
588+
'silverstripe-htmleditor-tinymce' => '1.0',
589+
'silverstripe-hybridsessions' => '4.0',
590+
'silverstripe-linkfield' => '5.0',
591+
'silverstripe-login-forms' => '6.0',
592+
'silverstripe-lumberjack' => '4.0',
593+
'silverstripe-mfa' => '6.0',
594+
'silverstripe-mimevalidator' => '4.0',
595+
'silverstripe-queuedjobs' => '6.0',
596+
'silverstripe-realme' => '6.0',
597+
'silverstripe-segment-field' => '4.0',
598+
'silverstripe-session-manager' => '3.0',
599+
'silverstripe-sharedraftcontent' => '4.0',
600+
'silverstripe-spamprotection' => '5.0',
601+
'silverstripe-startup-theme' => '1.0',
602+
'silverstripe-staticpublishqueue' => '7.0',
603+
'silverstripe-subsites' => '4.0',
604+
'silverstripe-tagfield' => '4.0',
605+
'silverstripe-taxonomy' => '4.0',
606+
'silverstripe-template-engine' => '1.0',
607+
'silverstripe-textextraction' => '5.0',
608+
'silverstripe-totp-authenticator' => '6.0',
609+
'silverstripe-userforms' => '7.0',
610+
'silverstripe-vendor-plugin' => '3.0',
611+
],
574612
];

tests/JobCreatorTest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ private function getCurrentMinorInstallerVersion(string $cmsMajor): string
133133

134134
public function provideGetInstallerVersion(): array
135135
{
136+
$versionsInConst = array_keys(INSTALLER_TO_REPO_MINOR_VERSIONS);
137+
$latestVersionInConst = end($versionsInConst);
136138
$nextMinorCms4 = '4.x-dev';
137139
$currentMinorCms4 = $this->getCurrentMinorInstallerVersion('4') . '.x-dev';
138140
return [
@@ -174,8 +176,8 @@ public function provideGetInstallerVersion(): array
174176
'tagfield4' => ['myaccount/silverstripe-tagfield', 'pulls/2/mybugfix', $nextMinorCms4],
175177
'tagfield5' => ['myaccount/silverstripe-tagfield', 'pulls/2.9/mybugfix', $currentMinorCms4],
176178
'tagfield6' => ['myaccount/silverstripe-tagfield', 'pulls/burger/myfeature', $currentMinorCms4],
177-
// non-lockstepped repo, fallback to major version of installer (is missing 6.0 installer branch)
178-
'tagfield7' => ['myaccount/silverstripe-tagfield', '4.0', '6.x-dev', [['name' => '6']], ['silverstripe/framework' => '^6']],
179+
// non-lockstepped repo, fallback to major version of installer as no branch `99` or `99.x` exists for installer.
180+
'tagfield8' => ['myaccount/silverstripe-tagfield', '4.0', $latestVersionInConst . '.x-dev', [['name' => '99']], ['silverstripe/framework' => '^99']],
179181
// hardcoded repo version
180182
'session-manager1' => ['myaccount/silverstripe-session-manager', '1', $nextMinorCms4],
181183
'session-manager2' => ['myaccount/silverstripe-session-manager', '1.2', '4.10.x-dev'],

0 commit comments

Comments
 (0)