Skip to content

Commit a926d18

Browse files
authored
Merge pull request #708 from javve/fix/node-support
Fix Node support
2 parents 04d5dd0 + 7ce02b5 commit a926d18

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

.circleci/config.yml

+27-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
11
version: 2.1
2+
orbs:
3+
node: circleci/[email protected]
24
jobs:
3-
build:
4-
docker:
5-
- image: circleci/node:14.15.1
5+
test:
6+
executor:
7+
name: node/default
8+
parameters:
9+
os:
10+
type: string
11+
node-version:
12+
type: string
613
steps:
714
- checkout
8-
- restore_cache:
9-
key: dependency-cache-{{ checksum "package.json" }}
10-
- run: npm install
11-
- save_cache:
12-
key: dependency-cache-{{ checksum "package.json" }}
13-
paths:
14-
- node_modules
15-
- run:
16-
name: test
17-
command: npm test
15+
- node/install-packages
16+
- run: npm test
1817
- run:
1918
name: code-coverage
2019
command: 'bash <(curl -s https://codecov.io/bash)'
20+
21+
workflows:
22+
build:
23+
jobs:
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'

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"main": "src/index",
3939
"engines": {
40-
"node": "^14.15.1"
40+
"node": "^6.0 || ^8.0 || ^10.0 || ^12.0 || >=14"
4141
},
4242
"scripts": {
4343
"test": "npx jest",

0 commit comments

Comments
 (0)