Skip to content

Commit 3165f6b

Browse files
committed
feat: add circleci config file
1 parent 92f99c8 commit 3165f6b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.circleci/config.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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: ~/repo
13+
14+
steps:
15+
- checkout
16+
17+
# Download and cache dependencies
18+
- restore_cache:
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: yarn install
25+
26+
- save_cache:
27+
paths:
28+
- node_modules
29+
key: v1-dependencies-{{ checksum "package.json" }}
30+
31+
# run linting
32+
- run: yarn lint
33+
34+
# build
35+
- run: yarn build
36+
37+
# run tests
38+
- run: yarn test

0 commit comments

Comments
 (0)