Skip to content

Commit 4dc6cdc

Browse files
committed
fix: update circleci config
1 parent e92413a commit 4dc6cdc

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

.circleci/config.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
version: 2
22
jobs:
33
build:
4-
working_directory: ~/project
54
docker:
65
- image: circleci/node:latest
6+
77
branches:
8-
ignore:
9-
- gh-pages # list of branches to ignore
10-
- /release\/.*/ # or ignore regexes
8+
only:
9+
- master
10+
- /^greenkeeper/.*$/
11+
12+
working_directory: ~/repo
13+
1114
steps:
1215
- checkout
16+
17+
# Download and cache dependencies
1318
- restore_cache:
14-
key: dependency-cache-{{ checksum "package-lock.json" }}
15-
- run:
16-
name: install dependences
17-
command: npm install
19+
keys:
20+
- v1-dependencies-{{ checksum "package.json" }}
21+
# fallback to using the latest cache if no exact match is found
22+
- v1-dependencies-
23+
24+
- run: npm install
25+
1826
- save_cache:
19-
key: dependency-cache-{{ checksum "package-lock.json" }}
2027
paths:
21-
- ./node_modules
22-
- run:
23-
name: test
24-
command: npm run test
28+
- node_modules
29+
key: v1-dependencies-{{ checksum "package.json" }}
30+
31+
# run tests!
32+
- run: npm run test

0 commit comments

Comments
 (0)