@@ -131,29 +131,23 @@ jobs:
131
131
- name : Clone RTK repo
132
132
run : git clone https://github.com/reduxjs/redux-toolkit.git ./redux-toolkit
133
133
134
+ - name : Cache example deps
135
+ uses : actions/cache@v4
136
+ with :
137
+ path : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}/node_modules
138
+ key : test-published-artifact-${{ matrix.example }}-node_modules
139
+
134
140
- name : Check folder contents
135
141
run : ls -l .
136
142
137
- # Some weird install diffs with cloning this repo and installing.
138
- # Just kill the lockfiles for React-Redux and RTK and reinstall
139
-
140
- - name : Remove React-Redux lockfile
141
- run : rm yarn.lock && rm package.json
142
-
143
- - name : Remove RTK lockfile
144
- working-directory : ./redux-toolkit
145
- run : rm yarn.lock && rm package.json
146
-
147
- - name : Install deps
143
+ - name : Install example deps
148
144
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
149
- env :
150
- YARN_ENABLE_IMMUTABLE_INSTALLS : false
151
- run : rm yarn.lock && yarn install
145
+ run : yarn install
152
146
153
147
- name : Install Playwright browser if necessary
154
148
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
155
149
continue-on-error : true
156
- run : yarn playwright install
150
+ run : yarn playwright install || true
157
151
158
152
- uses : actions/download-artifact@v4
159
153
with :
@@ -172,13 +166,6 @@ jobs:
172
166
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
173
167
run : yarn info react-redux && yarn why react-redux
174
168
175
- - name : Set up JDK 17 for React Native build
176
- if : matrix.example == 'react-native'
177
- uses : actions/setup-java@v4
178
- with :
179
- java-version : ' 17.x'
180
- distribution : ' temurin'
181
-
182
169
- name : Build example
183
170
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
184
171
env :
0 commit comments