1 | version: 2
|
2 |
|
3 | jobs:
|
4 | test:
|
5 | working_directory: ~/less
|
6 | docker:
|
7 | - image: circleci/node:latest
|
8 | steps:
|
9 | - checkout
|
10 |
|
11 | - restore_cache:
|
12 | key: cache-{{ .Branch }}-{{ checksum "package.json" }}
|
13 |
|
14 | - run:
|
15 | name: Dep Install
|
16 | command: npm install
|
17 |
|
18 | - save_cache:
|
19 | key: cache-{{ .Branch }}-{{ checksum "package.json" }}
|
20 | paths:
|
21 | - "node_modules"
|
22 |
|
23 | - run:
|
24 | name: Tests
|
25 | command: npm test
|
26 |
|
27 | workflows:
|
28 | version: 2
|
29 | build:
|
30 | jobs:
|
31 | - test
|