Repository: ember-cli/ember-cli
Pull request #10311 (2023-07-06 13:45:27)

[ENHANCEMENT] Add v4.12 LTS scenario to `addon` blueprint


Patch:
diff --git a/blueprints/addon/files/.github/workflows/ci.yml b/blueprints/addon/files/.github/workflows/ci.yml
index 496d24090..7b776ac5e 100644
--- a/blueprints/addon/files/.github/workflows/ci.yml
+++ b/blueprints/addon/files/.github/workflows/ci.yml
@@ -66,6 +66,7 @@ jobs:
         try-scenario:
           - ember-lts-4.4
           - ember-lts-4.8
+          - ember-lts-4.12
           - ember-release
           - ember-beta
           - ember-canary
diff --git a/blueprints/addon/files/.travis.yml b/blueprints/addon/files/.travis.yml
index 895fb5ae9..5862386ed 100644
--- a/blueprints/addon/files/.travis.yml
+++ b/blueprints/addon/files/.travis.yml
@@ -53,6 +53,7 @@ jobs:
     # as well as latest stable release (bonus points to beta/canary)
     - env: EMBER_TRY_SCENARIO=ember-lts-4.4
     - env: EMBER_TRY_SCENARIO=ember-lts-4.8
+    - env: EMBER_TRY_SCENARIO=ember-lts-4.12
     - env: EMBER_TRY_SCENARIO=ember-release
     - env: EMBER_TRY_SCENARIO=ember-beta
     - env: EMBER_TRY_SCENARIO=ember-canary
diff --git a/blueprints/addon/files/addon-config/ember-try.js b/blueprints/addon/files/addon-config/ember-try.js
index b4a28fbe3..f0e522e60 100644
--- a/blueprints/addon/files/addon-config/ember-try.js
+++ b/blueprints/addon/files/addon-config/ember-try.js
@@ -24,6 +24,14 @@ module.exports = async function () {
           },
         },
       },
+      {
+        name: 'ember-lts-4.12',
+        npm: {
+          devDependencies: {
+            'ember-source': '~4.12.0',
+          },
+        },
+      },
       {
         name: 'ember-release',
         npm: {


Test patch:
diff --git a/tests/fixtures/addon/defaults-travis/.travis.yml b/tests/fixtures/addon/defaults-travis/.travis.yml
index fe13c8ed7..5451080f3 100644
--- a/tests/fixtures/addon/defaults-travis/.travis.yml
+++ b/tests/fixtures/addon/defaults-travis/.travis.yml
@@ -49,6 +49,7 @@ jobs:
     # as well as latest stable release (bonus points to beta/canary)
     - env: EMBER_TRY_SCENARIO=ember-lts-4.4
     - env: EMBER_TRY_SCENARIO=ember-lts-4.8
+    - env: EMBER_TRY_SCENARIO=ember-lts-4.12
     - env: EMBER_TRY_SCENARIO=ember-release
     - env: EMBER_TRY_SCENARIO=ember-beta
     - env: EMBER_TRY_SCENARIO=ember-canary
diff --git a/tests/fixtures/addon/defaults-travis/tests/dummy/config/ember-try.js b/tests/fixtures/addon/defaults-travis/tests/dummy/config/ember-try.js
index 27ec66aa1..c0b8b60b7 100644
--- a/tests/fixtures/addon/defaults-travis/tests/dummy/config/ember-try.js
+++ b/tests/fixtures/addon/defaults-travis/tests/dummy/config/ember-try.js
@@ -22,6 +22,14 @@ module.exports = async function () {
           },
         },
       },
+      {
+        name: 'ember-lts-4.12',
+        npm: {
+          devDependencies: {
+            'ember-source': '~4.12.0',
+          },
+        },
+      },
       {
         name: 'ember-release',
         npm: {
diff --git a/tests/fixtures/addon/defaults/.github/workflows/ci.yml b/tests/fixtures/addon/defaults/.github/workflows/ci.yml
index fbd0ced91..aaf05f154 100644
--- a/tests/fixtures/addon/defaults/.github/workflows/ci.yml
+++ b/tests/fixtures/addon/defaults/.github/workflows/ci.yml
@@ -59,6 +59,7 @@ jobs:
         try-scenario:
           - ember-lts-4.4
           - ember-lts-4.8
+          - ember-lts-4.12
           - ember-release
           - ember-beta
           - ember-canary
diff --git a/tests/fixtures/addon/defaults/tests/dummy/config/ember-try.js b/tests/fixtures/addon/defaults/tests/dummy/config/ember-try.js
index 27ec66aa1..c0b8b60b7 100644
--- a/tests/fixtures/addon/defaults/tests/dummy/config/ember-try.js
+++ b/tests/fixtures/addon/defaults/tests/dummy/config/ember-try.js
@@ -22,6 +22,14 @@ module.exports = async function () {
           },
         },
       },
+      {
+        name: 'ember-lts-4.12',
+        npm: {
+          devDependencies: {
+            'ember-source': '~4.12.0',
+          },
+        },
+      },
       {
         name: 'ember-release',
         npm: {
diff --git a/tests/fixtures/addon/pnpm/.github/workflows/ci.yml b/tests/fixtures/addon/pnpm/.github/workflows/ci.yml
index 74e654973..23eeea151 100644
--- a/tests/fixtures/addon/pnpm/.github/workflows/ci.yml
+++ b/tests/fixtures/addon/pnpm/.github/workflows/ci.yml
@@ -53,6 +53,7 @@ jobs:
         try-scenario:
           - ember-lts-4.4
           - ember-lts-4.8
+          - ember-lts-4.12
           - ember-release
           - ember-beta
           - ember-canary
diff --git a/tests/fixtures/addon/pnpm/tests/dummy/config/ember-try.js b/tests/fixtures/addon/pnpm/tests/dummy/config/ember-try.js
index 33f4e2608..d9e08b3d2 100644
--- a/tests/fixtures/addon/pnpm/tests/dummy/config/ember-try.js
+++ b/tests/fixtures/addon/pnpm/tests/dummy/config/ember-try.js
@@ -23,6 +23,14 @@ module.exports = async function () {
           },
         },
       },
+      {
+        name: 'ember-lts-4.12',
+        npm: {
+          devDependencies: {
+            'ember-source': '~4.12.0',
+          },
+        },
+      },
       {
         name: 'ember-release',
         npm: {
diff --git a/tests/fixtures/addon/yarn/.github/workflows/ci.yml b/tests/fixtures/addon/yarn/.github/workflows/ci.yml
index 79d6578b8..78bb4473c 100644
--- a/tests/fixtures/addon/yarn/.github/workflows/ci.yml
+++ b/tests/fixtures/addon/yarn/.github/workflows/ci.yml
@@ -59,6 +59,7 @@ jobs:
         try-scenario:
           - ember-lts-4.4
           - ember-lts-4.8
+          - ember-lts-4.12
           - ember-release
           - ember-beta
           - ember-canary
diff --git a/tests/fixtures/addon/yarn/.travis.yml b/tests/fixtures/addon/yarn/.travis.yml
index a43891336..c94d16987 100644
--- a/tests/fixtures/addon/yarn/.travis.yml
+++ b/tests/fixtures/addon/yarn/.travis.yml
@@ -48,6 +48,7 @@ jobs:
     # as well as latest stable release (bonus points to beta/canary)
     - env: EMBER_TRY_SCENARIO=ember-lts-4.4
     - env: EMBER_TRY_SCENARIO=ember-lts-4.8
+    - env: EMBER_TRY_SCENARIO=ember-lts-4.12
     - env: EMBER_TRY_SCENARIO=ember-release
     - env: EMBER_TRY_SCENARIO=ember-beta
     - env: EMBER_TRY_SCENARIO=ember-canary
diff --git a/tests/fixtures/addon/yarn/tests/dummy/config/ember-try.js b/tests/fixtures/addon/yarn/tests/dummy/config/ember-try.js
index 646303c14..cd1a22942 100644
--- a/tests/fixtures/addon/yarn/tests/dummy/config/ember-try.js
+++ b/tests/fixtures/addon/yarn/tests/dummy/config/ember-try.js
@@ -23,6 +23,14 @@ module.exports = async function () {
           },
         },
       },
+      {
+        name: 'ember-lts-4.12',
+        npm: {
+          devDependencies: {
+            'ember-source': '~4.12.0',
+          },
+        },
+      },
       {
         name: 'ember-release',
         npm: {