-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.yml
37 lines (35 loc) · 870 Bytes
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: 2.1
commands:
run-npm-test:
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}
# run tests!
- run: npm run lint
- run: npm test
jobs:
node-v10:
docker:
- image: circleci/node:10@sha256:9d543f8c98f798a4b3864ad184a38c43ebebddb322f25b11a62598826d5340a7
steps:
- run-npm-test
node-v12:
docker:
- image: circleci/node:12
steps:
- run-npm-test
workflows:
multiple_builds:
jobs:
- node-v10
- node-v12