1 | version: 2
|
2 | jobs:
|
3 | build:
|
4 | docker:
|
5 | # https://circleci.com/docs/2.0/circleci-images/#nodejs
|
6 | - image: circleci/node:6
|
7 |
|
8 | working_directory: ~/vue-style-loader
|
9 |
|
10 | steps:
|
11 | - checkout
|
12 |
|
13 | # Download and cache dependencies
|
14 | - restore_cache:
|
15 | keys:
|
16 | - v1-dependencies-{{ checksum "package.json" }}
|
17 | # fallback to using the latest cache if no exact match is found
|
18 | - v1-dependencies-
|
19 |
|
20 | - run: yarn install
|
21 |
|
22 | - save_cache:
|
23 | paths:
|
24 | - node_modules
|
25 | key: v1-dependencies-{{ checksum "package.json" }}
|
26 |
|
27 | # run tests!
|
28 | - run: yarn test
|