22
22
name : Cache npm deps
23
23
with :
24
24
path : |
25
- node_modules
26
- **/node_modules
25
+ node_modules
26
+ **/node_modules
27
27
key : ${{ runner.os }}-npm-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
28
28
- run : npm install --frozen-lockfile
29
29
if : steps.npm-cache.outputs.cache-hit != 'true'
58
58
name : Cache npm deps
59
59
with :
60
60
path : |
61
- node_modules
62
- **/node_modules
61
+ node_modules
62
+ **/node_modules
63
63
key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
64
64
- run : npm install --frozen-lockfile
65
65
if : steps.npm-cache.outputs.cache-hit != 'true'
95
95
name : Cache npm deps
96
96
with :
97
97
path : |
98
- node_modules
99
- **/node_modules
100
- ~/.cache/Cypress
98
+ node_modules
99
+ **/node_modules
100
+ ~/.cache/Cypress
101
101
key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
102
102
- run : npm install --frozen-lockfile
103
103
if : steps.npm-cache.outputs.cache-hit != 'true'
@@ -136,9 +136,9 @@ jobs:
136
136
name : Cache npm deps
137
137
with :
138
138
path : |
139
- node_modules
140
- **/node_modules
141
- ~/.cache/Cypress
139
+ node_modules
140
+ **/node_modules
141
+ ~/.cache/Cypress
142
142
key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
143
143
- run : npm install --frozen-lockfile
144
144
if : steps.npm-cache.outputs.cache-hit != 'true'
@@ -157,83 +157,3 @@ jobs:
157
157
run : npm run build:docs
158
158
- name : A11y tests
159
159
run : npm run serve:docs & npm run test:a11y
160
- test_component :
161
- runs-on : ubuntu-latest
162
- env :
163
- GH_PR_NUM : ${{ github.event.number }}
164
- needs : build
165
- steps :
166
- - uses : actions/checkout@v4
167
- # Yes, we really want to checkout the PR
168
- - run : |
169
- if [[ ! -z "${GH_PR_NUM}" ]]; then
170
- echo "Checking out PR"
171
- git fetch origin pull/$GH_PR_NUM/head:tmp
172
- git checkout tmp
173
- fi
174
- - uses : actions/setup-node@v4
175
- with :
176
- node-version : ' 20'
177
- - uses : actions/cache@v4
178
- id : npm-cache
179
- name : Cache npm deps
180
- with :
181
- path : |
182
- node_modules
183
- **/node_modules
184
- ~/.cache/Cypress
185
- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
186
- - run : npm install --frozen-lockfile
187
- if : steps.npm-cache.outputs.cache-hit != 'true'
188
- - uses : actions/cache@v4
189
- id : dist
190
- name : Cache dist
191
- with :
192
- path : |
193
- packages/*/dist
194
- packages/react-styles/css
195
- key : ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
196
- - name : Build dist
197
- run : npm run build
198
- - name : Run component tests
199
- run : npm run cypress:run:ci:cp
200
- test_e2e :
201
- runs-on : ubuntu-latest
202
- env :
203
- GH_PR_NUM : ${{ github.event.number }}
204
- needs : build
205
- steps :
206
- - uses : actions/checkout@v4
207
- # Yes, we really want to checkout the PR
208
- - run : |
209
- if [[ ! -z "${GH_PR_NUM}" ]]; then
210
- echo "Checking out PR"
211
- git fetch origin pull/$GH_PR_NUM/head:tmp
212
- git checkout tmp
213
- fi
214
- - uses : actions/setup-node@v4
215
- with :
216
- node-version : ' 20'
217
- - uses : actions/cache@v4
218
- id : npm-cache
219
- name : Cache npm deps
220
- with :
221
- path : |
222
- node_modules
223
- **/node_modules
224
- ~/.cache/Cypress
225
- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
226
- - run : npm install --frozen-lockfile
227
- if : steps.npm-cache.outputs.cache-hit != 'true'
228
- - uses : actions/cache@v4
229
- id : dist
230
- name : Cache dist
231
- with :
232
- path : |
233
- packages/*/dist
234
- packages/react-styles/css
235
- key : ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
236
- - name : Build dist
237
- run : npm run build
238
- - name : Run component tests
239
- run : npm run cypress:run:ci:e2e
0 commit comments