-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcircle.yml
37 lines (28 loc) · 799 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/node:10
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- dependencies-cache-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- dependencies-cache-
- run: yarn install
- save_cache:
paths:
- node_modules
key: dependencies-cache-{{ checksum "yarn.lock" }}
# run tests!
- run: npm test
- run:
name: Send code coverage
command: './node_modules/.bin/codecov'