@@ -2,17 +2,21 @@ name: Node.js CI
22
33on : [push]
44
5+ permissions : {}
6+
57jobs :
68 lint :
79 runs-on : ubuntu-latest
810 timeout-minutes : 10
911 strategy :
1012 matrix :
11- node-version : [20 .x]
13+ node-version : [24 .x]
1214 steps :
13- - uses : actions/checkout@v4
15+ - uses : actions/checkout@v6
16+ with :
17+ persist-credentials : false
1418 - name : Use Node.js ${{ matrix.node-version }}
15- uses : actions/setup-node@v4
19+ uses : actions/setup-node@v6
1620 with :
1721 node-version : ${{ matrix.node-version }}
1822 - run : npm install
@@ -24,11 +28,13 @@ jobs:
2428 timeout-minutes : 10
2529 strategy :
2630 matrix :
27- node-version : [18.x, 20.x]
31+ node-version : [18.x, 20.x, 22.x, 24.x ]
2832 steps :
29- - uses : actions/checkout@v4
33+ - uses : actions/checkout@v6
34+ with :
35+ persist-credentials : false
3036 - name : Use Node.js ${{ matrix.node-version }}
31- uses : actions/setup-node@v4
37+ uses : actions/setup-node@v6
3238 with :
3339 node-version : ${{ matrix.node-version }}
3440 - run : npm install
@@ -40,11 +46,13 @@ jobs:
4046 timeout-minutes : 10
4147 strategy :
4248 matrix :
43- node-version : [20 .x]
49+ node-version : [24 .x]
4450 steps :
45- - uses : actions/checkout@v4
51+ - uses : actions/checkout@v6
52+ with :
53+ persist-credentials : false
4654 - name : Use Node.js ${{ matrix.node-version }}
47- uses : actions/setup-node@v4
55+ uses : actions/setup-node@v6
4856 with :
4957 node-version : ${{ matrix.node-version }}
5058 - run : npm install
@@ -56,18 +64,21 @@ jobs:
5664 runs-on : ubuntu-latest
5765 strategy :
5866 matrix :
59- node-version : [20 .x]
67+ node-version : [24 .x]
6068 steps :
61- - uses : actions/checkout@v4
69+ - uses : actions/checkout@v6
70+ with :
71+ persist-credentials : false
6272 - name : Use Node.js ${{ matrix.node-version }}
63- uses : actions/setup-node@v4
73+ uses : actions/setup-node@v6
6474 with :
6575 node-version : ${{ matrix.node-version }}
6676 - run : npm install
6777 - name : Generate coverage report
6878 run : npm run coverage-ci
6979 - name : Upload coverage to Codecov
70- uses : codecov/codecov-action@v3
80+ uses : codecov/codecov-action@v5
7181 with :
7282 file : ./coverage/lcov.info
73- fail_ci_if_error : false
83+ fail_ci_if_error : true
84+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments