Skip to content

Commit 83200ab

Browse files
committed
chore: update circle ci
1 parent 9e22551 commit 83200ab

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

.circleci/config.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
15
version: 2
26
jobs:
37
build:
48
docker:
5-
- image: circleci/node
9+
# specify the version you desire here
10+
- image: circleci/node:7.10
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
17+
working_directory: ~/repo
18+
619
steps:
720
- checkout
21+
22+
# Download and cache dependencies
823
- restore_cache:
9-
key: dependency-cache-{{ checksum "package.json" }}
10-
- run:
11-
command: yarn
24+
keys:
25+
- v1-dependencies-{{ checksum "package.json" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-dependencies-
28+
29+
- run: yarn install
30+
1231
- save_cache:
13-
key: dependency-cache-{{ checksum "package.json" }}
1432
paths:
15-
- ./node_modules
16-
- run:
17-
name: test
18-
command: yarn run test
33+
- node_modules
34+
key: v1-dependencies-{{ checksum "package.json" }}
35+
36+
# run tests!
37+
- run: yarn test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
[![NPM][npm-icon] ][npm-url]
66

7-
[![Build status][ci-image] ][ci-url]
7+
<!-- [![Build status][ci-image] ][ci-url] -->
88
[![semantic-release][semantic-image] ][semantic-url]
99

1010
## Install

0 commit comments

Comments
 (0)