Skip to content

Commit 130d78d

Browse files
committed
feat: add CircleCi
1 parent 7a35f26 commit 130d78d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.circleci/config.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:latest
11+
12+
working_directory: ~/starter-kit
13+
14+
steps:
15+
- checkout:
16+
path: ~/starter-kit
17+
18+
# Download and cache dependencies
19+
- restore_cache:
20+
keys:
21+
- v1-dependencies-{{ checksum "package.json" }}
22+
# fallback to using the latest cache if no exact match is found
23+
- v1-dependencies-
24+
25+
- run: yarn install
26+
27+
- save_cache:
28+
paths:
29+
- node_modules
30+
key: v1-dependencies-{{ checksum "package.json" }}
31+
32+
# run linting
33+
- run: yarn lint
34+
35+
# build
36+
- run: yarn build
37+
38+
# run tests
39+
- run: yarn test

0 commit comments

Comments
 (0)