Skip to content

Commit

Permalink
Add embroider test suite (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
thoov authored Dec 1, 2021
1 parent aed6ba0 commit ba8cf71
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
- ember-release
- ember-beta
- ember-canary
- embroider-safe
- embroider-optimized

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/* eslint-env node */

const getChannelURL = require('ember-source-channel-url');
const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');

module.exports = function () {
return Promise.all([
Expand Down Expand Up @@ -93,6 +94,8 @@ module.exports = function () {
devDependencies: {},
},
},
embroiderSafe(),
embroiderOptimized(),
],
};
});
Expand Down
3 changes: 2 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ module.exports = function (defaults) {
behave. You most likely want to be modifying `./index.js` or app's build file
*/

return app.toTree();
const { maybeEmbroider } = require('@embroider/test-setup');
return maybeEmbroider(app);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@babel/core": "7.16.0",
"@ember/optional-features": "2.0.0",
"@ember/test-helpers": "2.6.0",
"@embroider/test-setup": "0.47.2",
"broccoli-stew": "3.0.0",
"ember-auto-import": "2.2.4",
"ember-cli": "3.28.4",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ba8cf71

Please sign in to comment.