Skip to content

Commit db3f818

Browse files
committed
build: ure recommended circle.yml
1 parent 46b1135 commit db3f818

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

.circleci/config.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
version: 2
22
jobs:
3-
build:
4-
docker:
5-
- image: circleci/node:4.8.2
6-
steps:
3+
build:
4+
docker:
5+
- image: circleci/node:7.10
6+
7+
working_directory: ~/repo
8+
9+
steps:
710
- checkout
8-
- run:
9-
name: update-npm
10-
command: 'sudo npm install -g npm@latest'
11-
- run:
12-
name: install-npm
13-
command: npm install
14-
- run:
15-
name: test
16-
command: npm test
11+
12+
# Download and cache dependencies
13+
- restore_cache:
14+
keys:
15+
- v1-dependencies-{{ checksum "package.json" }}
16+
# fallback to using the latest cache if no exact match is found
17+
- v1-dependencies-
18+
19+
- run: yarn install
20+
21+
- save_cache:
22+
paths:
23+
- node_modules
24+
key: v1-dependencies-{{ checksum "package.json" }}
25+
26+
# run tests!
27+
- run: yarn test

0 commit comments

Comments
 (0)