@@ -11,14 +11,14 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : checkout
14
- uses : actions/checkout@master
14
+ uses : actions/checkout@v4
15
15
16
- - uses : actions/setup-node@v1
16
+ - uses : actions/setup-node@v4
17
17
with :
18
- node-version : ' 16 '
18
+ node-version : 20
19
19
20
20
- name : cache package-lock.json
21
- uses : actions/cache@v2
21
+ uses : actions/cache@v4
22
22
with :
23
23
path : package-temp-dir
24
24
key : lock-${{ github.sha }}
@@ -35,29 +35,29 @@ jobs:
35
35
36
36
- name : cache node_modules
37
37
id : node_modules_cache_id
38
- uses : actions/cache@v2
38
+ uses : actions/cache@v4
39
39
with :
40
40
path : node_modules
41
41
key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
42
42
43
43
- name : install
44
44
if : steps.node_modules_cache_id.outputs.cache-hit != 'true'
45
- run : npm i
46
-
45
+ run : npm ci
46
+
47
47
lint :
48
48
runs-on : ubuntu-latest
49
49
steps :
50
50
- name : checkout
51
- uses : actions/checkout@master
51
+ uses : actions/checkout@v4
52
52
53
53
- name : restore cache from package-lock.json
54
- uses : actions/cache@v2
54
+ uses : actions/cache@v4
55
55
with :
56
56
path : package-temp-dir
57
57
key : lock-${{ github.sha }}
58
58
59
59
- name : restore cache from node_modules
60
- uses : actions/cache@v2
60
+ uses : actions/cache@v4
61
61
with :
62
62
path : node_modules
63
63
key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -71,16 +71,16 @@ jobs:
71
71
runs-on : ubuntu-latest
72
72
steps :
73
73
- name : checkout
74
- uses : actions/checkout@master
74
+ uses : actions/checkout@v4
75
75
76
76
- name : restore cache from package-lock.json
77
- uses : actions/cache@v2
77
+ uses : actions/cache@v4
78
78
with :
79
79
path : package-temp-dir
80
80
key : lock-${{ github.sha }}
81
81
82
82
- name : restore cache from node_modules
83
- uses : actions/cache@v2
83
+ uses : actions/cache@v4
84
84
with :
85
85
path : node_modules
86
86
key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -94,21 +94,26 @@ jobs:
94
94
runs-on : ubuntu-latest
95
95
steps :
96
96
- name : checkout
97
- uses : actions/checkout@master
97
+ uses : actions/checkout@v4
98
98
99
99
- name : restore cache from package-lock.json
100
- uses : actions/cache@v2
100
+ uses : actions/cache@v4
101
101
with :
102
102
path : package-temp-dir
103
103
key : lock-${{ github.sha }}
104
104
105
105
- name : restore cache from node_modules
106
- uses : actions/cache@v2
106
+ uses : actions/cache@v4
107
107
with :
108
108
path : node_modules
109
109
key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
110
110
111
111
- name : coverage
112
- run : npm run coverage && bash <(curl -s https://codecov.io/bash)
112
+ run : npm run coverage
113
113
114
- needs : setup
114
+ - name : Upload coverage to Codecov
115
+ uses : codecov/codecov-action@v4
116
+ with :
117
+ token : ${{ secrets.CODECOV_TOKEN }}
118
+
119
+ needs : setup
0 commit comments