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,33 @@ jobs:
4142
4243 test :
4344
45+ name : Node.js
4446 runs-on : ubuntu-latest
4547
4648 needs : build
4749
4850 strategy :
4951 matrix :
50- node-version : [14.x, 16.x, 18.x, 20.x]
52+ node-version : [16.x, 18.x, 20.x]
5153
5254 steps :
5355
5456 - name : ' Checkout the repository'
55- uses : actions/checkout@v2
57+ uses : actions/checkout@v4
5658
5759 - name : Test with Node.js ${{ matrix.node-version }}
58- uses : actions/setup-node@v1
60+ uses : actions/setup-node@v4
5961 with :
6062 node-version : ${{ matrix.node-version }}
6163
64+ - name : Enable Corepack
65+ run : corepack enable
66+
6267 - name : Install dependencies
63- run : yarn install --ignore-engines
68+ run : yarn install
6469
6570 - name : Download build
66- uses : actions/download-artifact@v2
71+ uses : actions/download-artifact@v4
6772 with :
6873 name : build
6974
0 commit comments