Skip to content

Commit aaef73d

Browse files
salilagrawalkinetifex
authored andcommitted
[dist] add CircleCI config (#2)
1 parent 24b98cf commit aaef73d

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.circleci/config.yml

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

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ tests
77
*.spec.js
88
jest.config.js
99
locales
10+
.circleci

0 commit comments

Comments
 (0)