88 timeout-minutes : 10
99 strategy :
1010 matrix :
11- node-version : [14 .x]
11+ node-version : [22 .x]
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1414 - name : Use Node.js ${{ matrix.node-version }}
15- uses : actions/setup-node@v1
15+ uses : actions/setup-node@v4
1616 with :
1717 node-version : ${{ matrix.node-version }}
1818 - run : npm install
@@ -22,18 +22,13 @@ jobs:
2222 needs : [lint]
2323 runs-on : ubuntu-latest
2424 timeout-minutes : 10
25- services :
26- mongodb :
27- image : mongo:4.2
28- ports :
29- - 27017:27017
3025 strategy :
3126 matrix :
32- node-version : [12 .x, 14 .x]
27+ node-version : [20 .x, 22 .x]
3328 steps :
34- - uses : actions/checkout@v2
29+ - uses : actions/checkout@v4
3530 - name : Use Node.js ${{ matrix.node-version }}
36- uses : actions/setup-node@v1
31+ uses : actions/setup-node@v4
3732 with :
3833 node-version : ${{ matrix.node-version }}
3934 - run : |
@@ -47,18 +42,13 @@ jobs:
4742 needs : [test-node]
4843 runs-on : ubuntu-latest
4944 timeout-minutes : 10
50- services :
51- mongodb :
52- image : mongo:4.2
53- ports :
54- - 27017:27017
5545 strategy :
5646 matrix :
57- node-version : [14 .x]
47+ node-version : [22 .x]
5848 steps :
59- - uses : actions/checkout@v2
49+ - uses : actions/checkout@v4
6050 - name : Use Node.js ${{ matrix.node-version }}
61- uses : actions/setup-node@v1
51+ uses : actions/setup-node@v4
6252 with :
6353 node-version : ${{ matrix.node-version }}
6454 - run : |
6959 cd test
7060 npm run coverage-ci
7161 - name : Upload coverage to Codecov
72- uses : codecov/codecov-action@v1
62+ uses : codecov/codecov-action@v5
7363 with :
74- file : ./test/coverage/lcov.info
64+ files : ./test/coverage/lcov.info
7565 fail_ci_if_error : true
66+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments