File tree 3 files changed +39
-2
lines changed
3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
test :
15
15
timeout-minutes : 10
16
- name : Tests
16
+ name : " Tests: ${{ matrix.EMBROIDER && 'embroider' || 'classic' }} "
17
17
runs-on : ubuntu-latest
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
21
+ EMBROIDER :
22
+ - ' ' # classic
23
+ - ' true'
18
24
19
25
steps :
20
26
- uses : actions/checkout@v4
21
27
- uses : wyvox/action-setup-pnpm@v3
22
28
- run : pnpm lint
23
29
- run : pnpm test:ember
24
30
working-directory : test-apps/base-tests
31
+ env :
32
+ EMBROIDER : ${{ matrix.EMBROIDER }}
25
33
26
34
floating-dependencies :
27
35
timeout-minutes : 10
28
- name : " Floating Dependencies"
36
+ name : " Floating Dependencies: ${{ matrix.EMBROIDER && 'embroider' || 'classic' }} "
29
37
runs-on : ubuntu-latest
38
+ strategy :
39
+ fail-fast : false
40
+ matrix :
41
+ EMBROIDER :
42
+ - ' ' # classic
43
+ - ' true'
30
44
31
45
steps :
32
46
- uses : actions/checkout@v4
33
47
- uses : wyvox/action-setup-pnpm@v3
34
48
- run : pnpm test:ember
35
49
working-directory : test-apps/base-tests
50
+ env :
51
+ EMBROIDER : ${{ matrix.EMBROIDER }}
36
52
37
53
try-scenarios :
38
54
timeout-minutes : 10
Original file line number Diff line number Diff line change @@ -9,5 +9,25 @@ module.exports = function (defaults) {
9
9
// Add options here
10
10
} ) ;
11
11
12
+ if ( process . env . EMBROIDER ) {
13
+ const { Webpack } = require ( '@embroider/webpack' ) ;
14
+
15
+ return require ( '@embroider/compat' ) . compatBuild ( app , Webpack , {
16
+ extraPublicTrees : [ ] ,
17
+ staticAddonTrees : true ,
18
+ staticAddonTestSupportTrees : true ,
19
+ staticHelpers : true ,
20
+ staticModifiers : true ,
21
+ staticComponents : true ,
22
+ staticEmberSource : true ,
23
+ packagerOptions : {
24
+ webpackConfig : {
25
+ // Highest fidelity source map (at the cost of build speed)
26
+ devtool : 'source-map' ,
27
+ } ,
28
+ } ,
29
+ } ) ;
30
+ }
31
+
12
32
return app . toTree ( ) ;
13
33
} ;
Original file line number Diff line number Diff line change 22
22
"lint:js:fix" : " eslint . --fix" ,
23
23
"lint:types" : " tsc --noEmit" ,
24
24
"start" : " ember serve" ,
25
+ "start:embroider" : " EMBROIDER=1 ember serve" ,
25
26
"test" : " concurrently \" npm:lint\" \" npm:test:*\" --names \" lint,test:\" " ,
26
27
"test:ember" : " ember test" ,
27
28
"test:ember-compatibility" : " ember try:each" ,
You can’t perform that action at this time.
0 commit comments