Provide a variable for testing previous version of Drupal core
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3394905. --> Reported by: [dave reid](https://www.drupal.org/user/53892) Related to !61 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>For modules that want to maintain compatibility with two major versions of Drupal core at the same time (9 and 10, 10 and 11), it would be helpful to have a variable for "previous version of Drupal core" so that we are not responsible for hard-coding that core version ourselves. We can see this has to be done manually in <a href="https://git.drupalcode.org/project/keycdn/-/blob/8.x-1.x/.gitlab-ci.yml#L26">https://git.drupalcode.org/project/keycdn/-/blob/8.x-1.x/.gitlab-ci.yml#L26</a></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>* Add new variables for previous Drupal core version to help replicate the options allowed by DrupalCI:</p> <p><img src="https://www.drupal.org/files/issues/2023-10-18/Screenshot%202023-10-18%20at%202.51.58%20PM.png" alt="Options offered by DrupalCI for previous versions of core"></p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>* Submit a MR with the change.</p> > Related issue: [Issue #3396005](https://www.drupal.org/node/3396005) > Related issue: [Issue #3396030](https://www.drupal.org/node/3396030)
issue