@@ -23,29 +23,12 @@ jobs:
23
23
with :
24
24
node-version : ${{ env.NODE_VERSION }}
25
25
26
- - name : Get Yarn cache path
27
- id : yarn-cache-dir-path
28
- run : echo "::set-output name=dir::$(yarn cache dir)"
29
-
30
- - name : Cache Yarn cache and node_modules
31
- id : cache-dependencies
32
- uses : actions/cache@v2
33
- with :
34
- path : |
35
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
36
- node_modules
37
- test-apps/new-addon/node_modules
38
- key : ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
39
- restore-keys : ${{ runner.os }}-${{ env.NODE_VERSION }}-
40
-
41
26
- name : Install dependencies
42
27
run : yarn install --frozen-lockfile
43
- if : steps.cache-dependencies.outputs.cache-hit != 'true'
44
28
45
29
- name : Lint
46
30
run : yarn lint
47
31
48
-
49
32
test-addon-floating :
50
33
name : Test addon (floating dependencies)
51
34
runs-on : ubuntu-latest
72
55
- name : Test
73
56
run : yarn test:${{ matrix.script-name }}
74
57
75
-
76
58
test-addon-locked :
77
59
name : Test addon (locked dependencies)
78
60
runs-on : ubuntu-latest
@@ -93,29 +75,12 @@ jobs:
93
75
with :
94
76
node-version : ${{ env.NODE_VERSION }}
95
77
96
- - name : Get Yarn cache path
97
- id : yarn-cache-dir-path
98
- run : echo "::set-output name=dir::$(yarn cache dir)"
99
-
100
- - name : Cache Yarn cache and node_modules
101
- id : cache-dependencies
102
- uses : actions/cache@v2
103
- with :
104
- path : |
105
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
106
- node_modules
107
- test-apps/new-addon/node_modules
108
- key : ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
109
- restore-keys : ${{ runner.os }}-${{ env.NODE_VERSION }}-
110
-
111
78
- name : Install dependencies
112
79
run : yarn install --frozen-lockfile
113
- if : steps.cache-dependencies.outputs.cache-hit != 'true'
114
80
115
81
- name : Test
116
82
run : yarn test:${{ matrix.script-name }}
117
83
118
-
119
84
test-compatibility :
120
85
name : Test compatibility
121
86
runs-on : ubuntu-latest
@@ -142,29 +107,12 @@ jobs:
142
107
with :
143
108
node-version : ${{ env.NODE_VERSION }}
144
109
145
- - name : Get Yarn cache path
146
- id : yarn-cache-dir-path
147
- run : echo "::set-output name=dir::$(yarn cache dir)"
148
-
149
- - name : Cache Yarn cache and node_modules
150
- id : cache-dependencies
151
- uses : actions/cache@v2
152
- with :
153
- path : |
154
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
155
- node_modules
156
- test-apps/new-addon/node_modules
157
- key : ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ matrix.scenario }}-${{ hashFiles('**/yarn.lock') }}
158
- restore-keys : ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ matrix.scenario }}-
159
-
160
110
- name : Install dependencies
161
111
run : yarn install --frozen-lockfile
162
- if : steps.cache-dependencies.outputs.cache-hit != 'true'
163
112
164
113
- name : Test
165
114
run : yarn test:ember-compatibility ${{ matrix.scenario }}
166
115
167
-
168
116
deploy-app :
169
117
name : Deploy app
170
118
needs : [lint, test-addon-floating, test-addon-locked, test-compatibility]
@@ -191,24 +139,8 @@ jobs:
191
139
with :
192
140
node-version : ${{ env.NODE_VERSION }}
193
141
194
- - name : Get Yarn cache path
195
- id : yarn-cache-dir-path
196
- run : echo "::set-output name=dir::$(yarn cache dir)"
197
-
198
- - name : Cache Yarn cache and node_modules
199
- id : cache-dependencies
200
- uses : actions/cache@v2
201
- with :
202
- path : |
203
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
204
- node_modules
205
- test-apps/new-addon/node_modules
206
- key : ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
207
- restore-keys : ${{ runner.os }}-${{ env.NODE_VERSION }}-
208
-
209
142
- name : Install dependencies
210
143
run : yarn install --frozen-lockfile
211
- if : steps.cache-dependencies.outputs.cache-hit != 'true'
212
144
213
145
- name : Deploy
214
146
run : yarn deploy
0 commit comments