@@ -2,9 +2,9 @@ name: Tests
2
2
3
3
on :
4
4
push :
5
- branches : [master, v9.0-integration ]
5
+ branches : [master]
6
6
pull_request :
7
- branches : [master, v9.0-integration ]
7
+ branches : [master]
8
8
workflow_dispatch :
9
9
10
10
jobs :
@@ -14,12 +14,12 @@ jobs:
14
14
15
15
steps :
16
16
- name : Checkout code
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
19
19
- name : Set up Node
20
- uses : actions/setup-node@v3
20
+ uses : actions/setup-node@v4
21
21
with :
22
- node-version : 18 .x
22
+ node-version : 20 .x
23
23
cache : ' yarn'
24
24
25
25
- name : Install dependencies
37
37
- name : Pack
38
38
run : yarn pack
39
39
40
- - uses : actions/upload-artifact@v3
40
+ - uses : actions/upload-artifact@v4
41
41
with :
42
42
name : package
43
43
path : ./package.tgz
@@ -50,15 +50,15 @@ jobs:
50
50
strategy :
51
51
fail-fast : false
52
52
matrix :
53
- node : ['18 .x']
53
+ node : ['20 .x']
54
54
ts : ['4.7', '4.8', '4.9', '5.0', '5.1', '5.2', '5.3', '5.4']
55
55
56
56
steps :
57
57
- name : Checkout repo
58
- uses : actions/checkout@v3
58
+ uses : actions/checkout@v4
59
59
60
60
- name : Use node ${{ matrix.node }}
61
- uses : actions/setup-node@v3
61
+ uses : actions/setup-node@v4
62
62
with :
63
63
node-version : ${{ matrix.node }}
64
64
cache : ' yarn'
@@ -82,12 +82,12 @@ jobs:
82
82
strategy :
83
83
fail-fast : false
84
84
matrix :
85
- node : ['18 .x']
85
+ node : ['20 .x']
86
86
steps :
87
87
- name : Checkout repo
88
- uses : actions/checkout@v3
88
+ uses : actions/checkout@v4
89
89
90
- - uses : actions/download-artifact@v3
90
+ - uses : actions/download-artifact@v4
91
91
with :
92
92
name : package
93
93
path : .
@@ -106,7 +106,7 @@ jobs:
106
106
strategy :
107
107
fail-fast : false
108
108
matrix :
109
- node : ['18 .x']
109
+ node : ['20 .x']
110
110
example :
111
111
[
112
112
' cra4' ,
@@ -123,7 +123,7 @@ jobs:
123
123
uses : actions/checkout@v4
124
124
125
125
- name : Use node ${{ matrix.node }}
126
- uses : actions/setup-node@v3.8.1
126
+ uses : actions/setup-node@v4
127
127
with :
128
128
node-version : ${{ matrix.node }}
129
129
cache : ' yarn'
@@ -146,14 +146,16 @@ jobs:
146
146
147
147
- name : Install deps
148
148
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
149
- run : rm yarn.lock && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
149
+ env :
150
+ YARN_ENABLE_IMMUTABLE_INSTALLS : false
151
+ run : rm yarn.lock && yarn install
150
152
151
153
- name : Install Playwright browser if necessary
152
154
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
153
155
continue-on-error : true
154
156
run : yarn playwright install
155
157
156
- - uses : actions/download-artifact@v2
158
+ - uses : actions/download-artifact@v4
157
159
with :
158
160
name : package
159
161
path : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
@@ -179,7 +181,9 @@ jobs:
179
181
180
182
- name : Build example
181
183
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
182
- run : NODE_OPTIONS=--openssl-legacy-provider yarn build
184
+ env :
185
+ NODE_OPTIONS : --openssl-legacy-provider
186
+ run : yarn build
183
187
184
188
- name : Run test step
185
189
working-directory : ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
@@ -193,17 +197,17 @@ jobs:
193
197
strategy :
194
198
fail-fast : false
195
199
matrix :
196
- node : ['18 .x']
200
+ node : ['20 .x']
197
201
example : ['rr-rsc-context']
198
202
defaults :
199
203
run :
200
204
working-directory : ./examples/publish-ci/${{ matrix.example }}
201
205
steps :
202
206
- name : Checkout repo
203
- uses : actions/checkout@v3
207
+ uses : actions/checkout@v4
204
208
205
209
- name : Use node ${{ matrix.node }}
206
- uses : actions/setup-node@v3
210
+ uses : actions/setup-node@v4
207
211
with :
208
212
node-version : ${{ matrix.node }}
209
213
cache : ' yarn'
@@ -214,7 +218,7 @@ jobs:
214
218
- name : Remove existing React-Redux
215
219
run : yarn remove react-redux
216
220
217
- - uses : actions/download-artifact@v3
221
+ - uses : actions/download-artifact@v4
218
222
with :
219
223
name : package
220
224
path : ./examples/publish-ci/${{ matrix.example }}
0 commit comments