2018-08-22 11:28:52 +02:00
|
|
|
version: 2
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
working_directory: ~/fakelog
|
|
|
|
docker:
|
2018-09-02 00:28:41 +02:00
|
|
|
- image: circleci/node
|
2018-08-22 11:28:52 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
key: cache-{{ checksum "package-lock.json" }}
|
|
|
|
|
2018-09-01 14:39:30 +02:00
|
|
|
- run: npm ci
|
2018-08-22 11:28:52 +02:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
2018-08-22 11:36:25 +02:00
|
|
|
- ~/.npm
|
2018-08-22 11:28:52 +02:00
|
|
|
- ./node_modules
|
|
|
|
key: cache-{{ checksum "package-lock.json" }}
|
|
|
|
|
|
|
|
- run: npm run test
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
|
|
|
|
test:
|
|
|
|
jobs:
|
|
|
|
- test
|