Skip to content

Commit 04f2e32

Browse files
committed
Add circleci config
1 parent 53ec7e0 commit 04f2e32

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.circleci/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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.1
6+
jobs:
7+
build:
8+
docker:
9+
# - image: circleci/node:8.9.4
10+
- image: circleci/node:8.16.0
11+
12+
working_directory: ~/project
13+
14+
steps:
15+
- checkout
16+
17+
# Download and cache dependencies
18+
- restore_cache:
19+
keys:
20+
- deps-{{ checksum "package-lock.json" }}
21+
# fallback to using the latest cache if no exact match is found
22+
- deps-
23+
24+
- run: npm install
25+
26+
- save_cache:
27+
paths:
28+
- frontend/node_modules
29+
key: deps-{{ checksum "package-lock.json" }}
30+
31+
# run tests
32+
- run: npm run test-node
33+
# run lint
34+
- run: npm run jshint

0 commit comments

Comments
 (0)