-
Notifications
You must be signed in to change notification settings - Fork 113
/
config.yml
105 lines (86 loc) · 2.37 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: 2
jobs:
install-job:
docker:
- image: circleci/node:dubnium
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- node-modules-{{ checksum "yarn.lock" }}
- run: yarn install --frozen-lockfile
- save_cache:
key: node-modules-{{ checksum "yarn.lock" }}
paths:
- node_modules
- persist_to_workspace:
root: ~/repo
paths:
- node_modules/*
test-job:
docker:
- image: circleci/node:dubnium
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: ~/repo
- run: yarn test
lint-job:
docker:
- image: circleci/node:dubnium
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: ~/repo
- run: yarn lint
build-job:
docker:
- image: circleci/node:dubnium
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: ~/repo
- run: yarn build
coverage-job:
docker:
- image: circleci/node:dubnium
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: ~/repo
- run: yarn test:coverage
- run: yarn coveralls
integration-job:
docker:
- image: circleci/node:dubnium-browsers
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: ~/repo
- run: yarn test:integration --ci
workflows:
version: 2
build-deploy:
jobs:
- install-job
- build-job:
requires:
- install-job
- test-job:
requires:
- install-job
- lint-job:
requires:
- install-job
- coverage-job:
requires:
- install-job
- integration-job:
requires:
- install-job