Skip to content

Commit 4aca95c

Browse files
committed
add ci config
1 parent 9f13924 commit 4aca95c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.circleci/config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 2
2+
jobs:
3+
lint:
4+
docker:
5+
- image: circleci/node:latest
6+
steps:
7+
- checkout
8+
- restore_cache:
9+
keys:
10+
- v1-dependencies-{{ checksum "package.json" }}
11+
- run: npm install
12+
- save_cache:
13+
paths:
14+
- node_modules
15+
key: v1-dependencies-{{ checksum "package.json" }}
16+
- run: npm run lint
17+
test:
18+
docker:
19+
- image: circleci/node:latest
20+
working_directory: ~/repo
21+
steps:
22+
- checkout
23+
- restore_cache:
24+
keys:
25+
- v1-dependencies-{{ checksum "package.json" }}
26+
- run: npm install
27+
- save_cache:
28+
paths:
29+
- node_modules
30+
key: v1-dependencies-{{ checksum "package.json" }}
31+
- run: npm test -- --coverage && bash <(curl -s https://codecov.io/bash)
32+
workflows:
33+
version: 2
34+
build_and_test:
35+
jobs:
36+
- lint
37+
- test

0 commit comments

Comments
 (0)