2019-05-14 02:56:47 +00:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
commands:
|
|
|
|
test-nodejs:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: Versions
|
|
|
|
command: npm version
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
|
|
|
|
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-master-{{ .Environment.CIRCLE_JOB }}
|
|
|
|
- run:
|
|
|
|
name: Install dependencies
|
|
|
|
command: npm ci
|
|
|
|
- run:
|
|
|
|
name: Test
|
|
|
|
command: npm test
|
|
|
|
save-npm-cache:
|
|
|
|
steps:
|
|
|
|
- save_cache:
|
|
|
|
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
|
|
|
|
paths:
|
|
|
|
- ~/.npm/_cacache
|
|
|
|
jobs:
|
2021-06-22 19:25:00 +00:00
|
|
|
node-v14:
|
2019-05-14 02:56:47 +00:00
|
|
|
docker:
|
2021-06-22 19:25:00 +00:00
|
|
|
- image: node:14
|
2019-05-14 02:56:47 +00:00
|
|
|
steps:
|
|
|
|
- test-nodejs
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
node-multi-build:
|
|
|
|
jobs:
|
2021-06-22 19:25:00 +00:00
|
|
|
- node-v14
|