diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f4184f7e9..b9b2ccdf7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -90,6 +90,8 @@ jobs:
- ember-canary
- embroider-safe
- embroider-optimized
+ - no-deprecations
+ - ember-release-no-deprecations
steps:
- uses: actions/checkout@v4
diff --git a/config/ember-try.js b/config/ember-try.js
index b7b3aa900..525054c2a 100644
--- a/config/ember-try.js
+++ b/config/ember-try.js
@@ -80,6 +80,23 @@ module.exports = async function () {
},
embroiderSafe(),
embroiderOptimized(),
+ {
+ name: 'no-deprecations',
+ npm: {
+ devDependencies: {
+ 'ember-deprecation-error': '*',
+ },
+ },
+ },
+ {
+ name: 'ember-release-no-deprecations',
+ npm: {
+ devDependencies: {
+ 'ember-source': await getChannelURL('release'),
+ 'ember-deprecation-error': '*',
+ },
+ },
+ },
],
};
};
diff --git a/tests/dummy/app/controllers/application.js b/tests/dummy/app/controllers/application.js
index fe45e3686..7c7c608c1 100644
--- a/tests/dummy/app/controllers/application.js
+++ b/tests/dummy/app/controllers/application.js
@@ -1,9 +1,12 @@
-/* eslint-disable ember/no-actions-hash, prettier/prettier */
+/* eslint-disable ember/no-actions-hash */
import { equal } from '@ember/object/computed';
import Controller from '@ember/controller';
import { computed } from '@ember/object';
+import { inject as service } from '@ember/service';
export default Controller.extend({
+ router: service(),
+
actions: {
toggleExpandedItem(value, ev) {
if (this.expandedItem === value) {
@@ -11,11 +14,11 @@ export default Controller.extend({
}
this.set('expandedItem', value);
ev.stopPropagation();
- }
+ },
},
- expandedItem: computed('currentRouteName', function() {
- if (this.currentRouteName.substr(0, 6) === 'layout') {
+ expandedItem: computed('router.currentRouteName', function () {
+ if (this.router.currentRouteName.substr(0, 6) === 'layout') {
return 'layout';
} else {
return 'demos';
@@ -23,5 +26,5 @@ export default Controller.extend({
}),
demosExpanded: equal('expandedItem', 'demos'),
- layoutExpanded: equal('expandedItem', 'layout')
+ layoutExpanded: equal('expandedItem', 'layout'),
});
diff --git a/tests/dummy/app/templates/application.hbs b/tests/dummy/app/templates/application.hbs
index ee405d002..983f5ddb6 100644
--- a/tests/dummy/app/templates/application.hbs
+++ b/tests/dummy/app/templates/application.hbs
@@ -11,54 +11,54 @@