@@ -164,29 +164,23 @@ jobs:
164
164
- name : Clone RTK repo
165
165
run : git clone https://github.com/reduxjs/redux-toolkit.git ./redux-toolkit
166
166
167
+ - name : Cache example deps
168
+ uses : actions/cache@v4
169
+ with :
170
+ path : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}/node_modules
171
+ key : test-published-artifact-${{ matrix.example }}-node_modules
172
+
167
173
- name : Check folder contents
168
174
run : ls -l .
169
175
170
- # Some weird install diffs with cloning this repo and installing.
171
- # Just kill the lockfiles for React-Redux and RTK and reinstall
172
-
173
- - name : Remove React-Redux lockfile
174
- run : rm yarn.lock && rm package.json
175
-
176
- - name : Remove RTK lockfile
177
- working-directory : ./redux-toolkit
178
- run : rm yarn.lock && rm package.json
179
-
180
- - name : Install deps
176
+ - name : Install example deps
181
177
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
182
- env :
183
- YARN_ENABLE_IMMUTABLE_INSTALLS : false
184
- run : rm yarn.lock && yarn install
178
+ run : yarn install
185
179
186
180
- name : Install Playwright browser if necessary
187
181
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
188
182
continue-on-error : true
189
- run : yarn playwright install
183
+ run : yarn playwright install || true
190
184
191
185
- uses : actions/download-artifact@v4
192
186
with :
@@ -205,13 +199,6 @@ jobs:
205
199
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
206
200
run : yarn info react-redux && yarn why react-redux
207
201
208
- - name : Set up JDK 17 for React Native build
209
- if : matrix.example == 'react-native'
210
- uses : actions/setup-java@v4
211
- with :
212
- java-version : ' 17.x'
213
- distribution : ' temurin'
214
-
215
202
- name : Build example
216
203
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
217
204
env :
0 commit comments