@@ -23,29 +23,12 @@ jobs:
2323 with :
2424 node-version : ${{ env.NODE_VERSION }}
2525
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-
4126 - name : Install dependencies
4227 run : yarn install --frozen-lockfile
43- if : steps.cache-dependencies.outputs.cache-hit != 'true'
4428
4529 - name : Lint
4630 run : yarn lint
4731
48-
4932 test-addon-floating :
5033 name : Test addon (floating dependencies)
5134 runs-on : ubuntu-latest
7255 - name : Test
7356 run : yarn test:${{ matrix.script-name }}
7457
75-
7658 test-addon-locked :
7759 name : Test addon (locked dependencies)
7860 runs-on : ubuntu-latest
@@ -93,29 +75,12 @@ jobs:
9375 with :
9476 node-version : ${{ env.NODE_VERSION }}
9577
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-
11178 - name : Install dependencies
11279 run : yarn install --frozen-lockfile
113- if : steps.cache-dependencies.outputs.cache-hit != 'true'
11480
11581 - name : Test
11682 run : yarn test:${{ matrix.script-name }}
11783
118-
11984 test-compatibility :
12085 name : Test compatibility
12186 runs-on : ubuntu-latest
@@ -142,29 +107,12 @@ jobs:
142107 with :
143108 node-version : ${{ env.NODE_VERSION }}
144109
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-
160110 - name : Install dependencies
161111 run : yarn install --frozen-lockfile
162- if : steps.cache-dependencies.outputs.cache-hit != 'true'
163112
164113 - name : Test
165114 run : yarn test:ember-compatibility ${{ matrix.scenario }}
166115
167-
168116 deploy-app :
169117 name : Deploy app
170118 needs : [lint, test-addon-floating, test-addon-locked, test-compatibility]
@@ -191,24 +139,8 @@ jobs:
191139 with :
192140 node-version : ${{ env.NODE_VERSION }}
193141
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-
209142 - name : Install dependencies
210143 run : yarn install --frozen-lockfile
211- if : steps.cache-dependencies.outputs.cache-hit != 'true'
212144
213145 - name : Deploy
214146 run : yarn deploy
0 commit comments