-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcircle.yml
More file actions
109 lines (97 loc) · 2.56 KB
/
circle.yml
File metadata and controls
109 lines (97 loc) · 2.56 KB
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
106
107
108
109
version: 2
references:
container: &container
docker:
- image: cimg/node:14.14.0
working_directory: ~/project
repository_cache_key: &repository_cache_key v1-repo-{{ .Branch }}-{{ .Revision }}
restore_repository: &restore_repository
restore_cache:
keys:
- *repository_cache_key
- v1-repo-{{ .Branch }}
- v1-repo
dependencies_cache_key: &dependencies_cache_key v1-dependencies-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
restore_dependencies: &restore_dependencies
restore_cache:
keys:
- *dependencies_cache_key
- v1-dependencies-{{ arch }}-{{ checksum "package.json" }}
- v1-dependencies-{{ arch }}
jobs:
checkout:
<<: *container
steps:
- *restore_repository
- checkout
- save_cache:
key: *repository_cache_key
paths:
- .
dependencies:
<<: *container
steps:
- *restore_repository
- *restore_dependencies
- run: yarn install --immutable --immutable-cache --check-cache
- save_cache:
key: *dependencies_cache_key
paths:
- node_modules
test:code:
<<: *container
steps:
- *restore_repository
- *restore_dependencies
- run: yarn run test:code --ci --coverage && cat ./coverage/lcov.info | yarn run coveralls
- store_test_results:
path: coverage/junit
- store_artifacts:
path: coverage
destination: coverage
- store_artifacts:
path: coverage/junit
destination: junit
test:eslint:
<<: *container
steps:
- *restore_repository
- *restore_dependencies
- run: yarn run test:eslint --format junit -o coverage/junit/js-lint-results.xml
- store_test_results:
path: coverage/junit
- store_artifacts:
path: coverage/junit
destination: junit
test:typescript:
<<: *container
steps:
- *restore_repository
- *restore_dependencies
- run: yarn run test:typescript
test:build:
<<: *container
steps:
- *restore_repository
- *restore_dependencies
- run: yarn run build
workflows:
version: 2
default:
jobs:
- checkout
- dependencies:
requires:
- checkout
- test:code:
requires:
- dependencies
- test:eslint:
requires:
- dependencies
- test:typescript:
requires:
- dependencies
- test:build:
requires:
- dependencies