@@ -16,16 +16,25 @@ commands:
16
16
# something different. Probably best to avoid that, out of principle, though.
17
17
common_node_steps :
18
18
description : " Set up Node.js environment and install dependencies"
19
+ parameters :
20
+ npm_version :
21
+ default : ' 8'
22
+ type : string
19
23
steps :
20
24
- oss/install_specific_npm_version :
21
- version : ' 8 '
25
+ version : <<parameters.npm_version>>
22
26
- checkout
23
27
- oss/npm_clean_install_with_caching
24
28
25
29
common_test_steps :
26
30
description : " Set up Node.js environment and run tests"
31
+ parameters :
32
+ npm_version :
33
+ default : ' 8'
34
+ type : string
27
35
steps :
28
- - common_node_steps
36
+ - common_node_steps :
37
+ npm_version : <<parameters.npm_version>>
29
38
- run :
30
39
command : npm run test:ci
31
40
environment :
47
56
docker :
48
57
- image : cimg/node:12.22.6
49
58
steps :
50
- - common_test_steps
59
+ - common_test_steps :
60
+ npm_version : ' 6'
51
61
# We will save the results of this one particular invocation to use in
52
62
# the publish step. Not only does this make the publishing step take less
53
63
# time, this also ensures that a passing version gets deployed even if,
66
76
67
77
NodeJS 16 :
68
78
docker :
69
- - image : cimg/node:16.10.0
79
+ - image : cimg/node:16.20
70
80
steps :
71
81
- common_test_steps
72
82
@@ -78,14 +88,14 @@ jobs:
78
88
79
89
Prettier :
80
90
docker :
81
- - image : cimg/node:16.10.0
91
+ - image : cimg/node:16.20
82
92
steps :
83
93
- common_node_steps
84
94
- run : npm run prettier-check
85
95
86
96
Spell check :
87
97
docker :
88
- - image : cimg/node:16.10.0
98
+ - image : cimg/node:16.20
89
99
steps :
90
100
- common_node_steps
91
101
- run : npm run spell-check
@@ -131,7 +141,6 @@ common_publish_filters: &common_publish_filters
131
141
ignore : /.*/
132
142
133
143
workflows :
134
- version : 2
135
144
Build :
136
145
jobs :
137
146
- NodeJS 12 :
0 commit comments