Skip to content

Commit 3fa5f68

Browse files
committed
Add CircleCI config
1 parent 453d4db commit 3fa5f68

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.circleci/config.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
- image: circleci/node:8.4
10+
11+
working_directory: ~/repo
12+
13+
steps:
14+
- checkout
15+
16+
# Download and cache dependencies
17+
- restore_cache:
18+
keys:
19+
- v1-dependencies-{{ checksum "package.json" }}
20+
# fallback to using the latest cache if no exact match is found
21+
- v1-dependencies-
22+
23+
- run: yarn install
24+
25+
- save_cache:
26+
paths:
27+
- node_modules
28+
key: v1-dependencies-{{ checksum "package.json" }}
29+
30+
# Start the examples server so that Cypress can run against them
31+
- run: yarn start
32+
# Install vxfb for Cypress
33+
- run: yarn add xvfb
34+
# Run eslint
35+
- run: yarn lint
36+
# Run tests
37+
- run: yarn test

0 commit comments

Comments
 (0)