UNPKG

705 BYAMLView Raw
1# Javascript Node CircleCI 2.0 configuration file
2version: 2
3jobs:
4 build:
5 docker:
6 # specify the version you desire here
7 # - image: circleci/node:7.10
8 - image: circleci/node:8-browsers
9
10 working_directory: ~/repo
11
12 steps:
13 - checkout
14
15 # Download and cache dependencies
16 - restore_cache:
17 keys:
18 - v1-dependencies-{{ checksum "package.json" }}
19 # fallback to using the latest cache if no exact match is found
20 - v1-dependencies-
21
22 - run: npm install
23
24 - save_cache:
25 paths:
26 - node_modules
27 key: v1-dependencies-{{ checksum "package.json" }}
28 # run tests!
29 - run: npm run test
\No newline at end of file