99
1010 steps :
1111
12- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v4
1313
14- - uses : actions/setup-node@v1
14+ - name : Setup Node.js
15+ uses : actions/setup-node@v4
1516 with :
16- node-version : 16 .x
17+ node-version : 20 .x
1718
18- - name : Install production dependencies, check node engine compatibility
19- run : yarn install --production=true
19+ - name : Enable Corepack
20+ run : corepack enable
2021
21- - name : Install development dependencies
22- run : yarn install --production=false --ignore-engines
22+ - name : Install dependencies
23+ run : yarn install
2324
2425 - name : Build & Code analysis
2526 run : yarn run lint
3132 run : yarn run test
3233
3334 - name : Upload build
34- uses : actions/upload-artifact@v2
35+ uses : actions/upload-artifact@v4
3536 with :
3637 name : build
3738 path : |
@@ -41,29 +42,36 @@ jobs:
4142
4243 test :
4344
45+ name : Node.js
4446 runs-on : ubuntu-latest
4547
48+ env :
49+ YARN_IGNORE_NODE : 1
50+
4651 needs : build
4752
4853 strategy :
4954 matrix :
50- node-version : [14.x, 16.x, 18.x, 20.x]
55+ node-version : [16.x, 18.x, 20.x]
5156
5257 steps :
5358
5459 - name : ' Checkout the repository'
55- uses : actions/checkout@v2
60+ uses : actions/checkout@v4
5661
5762 - name : Test with Node.js ${{ matrix.node-version }}
58- uses : actions/setup-node@v1
63+ uses : actions/setup-node@v4
5964 with :
6065 node-version : ${{ matrix.node-version }}
6166
67+ - name : Enable Corepack
68+ run : corepack enable
69+
6270 - name : Install dependencies
63- run : yarn install --ignore-engines
71+ run : yarn install
6472
6573 - name : Download build
66- uses : actions/download-artifact@v2
74+ uses : actions/download-artifact@v4
6775 with :
6876 name : build
6977
0 commit comments