Skip to content
This repository was archived by the owner on Jun 1, 2020. It is now read-only.

Commit 2a4e6c1

Browse files
author
Lorenz Henk
authored
Add circle-ci checks
1 parent a7f083f commit 2a4e6c1

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.circleci/config.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
7+
defaults: &defaults
8+
working_directory: ~/repo
9+
docker:
10+
- image: circleci/node:8.15
11+
12+
commands:
13+
install_js:
14+
steps:
15+
- restore_cache:
16+
keys:
17+
- v2-yarn-sha-{{ checksum "yarn.lock" }}
18+
- v2-yarn-sha-
19+
- run:
20+
name: Install js dependencies
21+
command: yarn
22+
- save_cache:
23+
key: v2-yarn-sha-{{ checksum "yarn.lock" }}
24+
paths: node_modules
25+
26+
jobs:
27+
test_unit:
28+
<<: *defaults
29+
steps:
30+
- checkout
31+
- install_js
32+
- run:
33+
name: run the tests
34+
command: yarn test
35+
build:
36+
<<: *defaults
37+
steps:
38+
- checkout
39+
- install_js
40+
- run:
41+
name: check if building works
42+
command: yarn build
43+
44+
workflows:
45+
version: 2
46+
pipeline:
47+
jobs:
48+
- test_unit
49+
- build

0 commit comments

Comments
 (0)