Skip to content

Commit 7ce02b5

Browse files
committedJan 17, 2021
Update circleci config for matrix testing
1 parent ab6f139 commit 7ce02b5

File tree

1 file changed

+24
-55
lines changed

1 file changed

+24
-55
lines changed
 

‎.circleci/config.yml

+24-55
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,33 @@ version: 2.1
22
orbs:
33
node: circleci/node@4.1.0
44
jobs:
5-
node14:
5+
test:
66
executor:
77
name: node/default
8-
tag: '14.15.4'
8+
parameters:
9+
os:
10+
type: string
11+
node-version:
12+
type: string
913
steps:
1014
- checkout
11-
- node/with-cache:
12-
steps:
13-
- run: npm install
14-
- run: npm test
15-
- run:
16-
name: code-coverage
17-
command: 'bash <(curl -s https://codecov.io/bash)'
18-
node12:
19-
executor:
20-
name: node/default
21-
tag: '12.20.1'
22-
steps:
23-
- checkout
24-
- node/with-cache:
25-
steps:
26-
- run: npm install
27-
- run: npm test
28-
node10:
29-
executor:
30-
name: node/default
31-
tag: '10.23.1'
32-
steps:
33-
- checkout
34-
- node/with-cache:
35-
steps:
36-
- run: npm install
37-
- run: npm test
38-
node8:
39-
executor:
40-
name: node/default
41-
tag: '8.17.0'
42-
steps:
43-
- checkout
44-
- node/with-cache:
45-
steps:
46-
- run: npm install
47-
- run: npm test
48-
node6:
49-
executor:
50-
name: node/default
51-
tag: '6.17.1'
52-
steps:
53-
- checkout
54-
- node/with-cache:
55-
steps:
56-
- run: npm install
57-
- run: npm test
15+
- node/install-packages
16+
- run: npm test
17+
- run:
18+
name: code-coverage
19+
command: 'bash <(curl -s https://codecov.io/bash)'
20+
5821
workflows:
59-
build-and-test:
22+
build:
6023
jobs:
61-
- node14
62-
- node12
63-
- node10
64-
- node8
65-
- node6
24+
- test:
25+
matrix:
26+
parameters:
27+
os:
28+
- docker
29+
node-version:
30+
- '6.17.1'
31+
- '8.17.0'
32+
- '10.23.1'
33+
- '12.20.1'
34+
- '14.15.4'

0 commit comments

Comments
 (0)
Please sign in to comment.