@@ -15,12 +15,12 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
strategy :
17
17
matrix :
18
- node-version : [16.x, 18.x, 20.x, 21 .x]
18
+ node-version : [16.x, 18.x, 20.x, 22 .x]
19
19
20
20
steps :
21
- - uses : actions/checkout@v2
21
+ - uses : actions/checkout@v4
22
22
- name : Test on Node.js ${{ matrix.node-version }}
23
- uses : actions/setup-node@v1
23
+ uses : actions/setup-node@v4
24
24
with :
25
25
node-version : ${{ matrix.node-version }}
26
26
- run : npm ci
@@ -31,18 +31,18 @@ jobs:
31
31
name : Code coverage
32
32
runs-on : ubuntu-latest
33
33
steps :
34
- - uses : actions/checkout@v2
34
+ - uses : actions/checkout@v4
35
35
with :
36
36
submodules : true
37
37
- name : Generate coverage report
38
- uses : actions/setup-node@v1
38
+ uses : actions/setup-node@v4
39
39
with :
40
- node-version : 18 .x
40
+ node-version : 22 .x
41
41
- run : npm ci
42
42
- run : npm run build --if-present
43
43
- run : npm run coverage
44
44
- name : Upload coverage report to storage
45
- uses : actions/upload-artifact@v1
45
+ uses : actions/upload-artifact@v4
46
46
with :
47
47
name : coverage
48
48
path : coverage/lcov.info
@@ -52,15 +52,15 @@ jobs:
52
52
needs : coverage
53
53
runs-on : ubuntu-latest
54
54
steps :
55
- - uses : actions/checkout@v2
55
+ - uses : actions/checkout@v4
56
56
- name : Download coverage report from storage
57
- uses : actions/download-artifact@v1
57
+ uses : actions/download-artifact@v4
58
58
with :
59
59
name : coverage
60
60
- name : Upload coverage report to codacy
61
- uses : actions/setup-node@v1
61
+ uses : actions/setup-node@v4
62
62
with :
63
- node-version : 18 .x
63
+ node-version : 22 .x
64
64
- run : |
65
65
( [[ "${CODACY_PROJECT_TOKEN}" != "" ]] && npm run coverage-publish ) || echo "Coverage report not published"
66
66
env:
0 commit comments