File tree Expand file tree Collapse file tree 1 file changed +94
-0
lines changed Expand file tree Collapse file tree 1 file changed +94
-0
lines changed Original file line number Diff line number Diff line change
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
+
7
+ orbs :
8
+ codecov :
codecov/[email protected]
9
+
10
+ aliases :
11
+ - &defaults
12
+ working_directory : ~/repo
13
+ docker :
14
+ - image : circleci/node:10
15
+
16
+ jobs :
17
+ build :
18
+ << : *defaults
19
+ steps :
20
+ - checkout
21
+ - restore_cache :
22
+ name : Restore root dependencies from cache
23
+ keys :
24
+ - root-dependencies-v1-{{ checksum "yarn.lock" }}
25
+ - run :
26
+ name : Install dependencies
27
+ command : yarn install
28
+ - save_cache :
29
+ name : Cache root dependencies
30
+ key : root-dependencies-v1-{{ checksum "yarn.lock" }}
31
+ paths :
32
+ - ~/.cache/yarn
33
+ - persist_to_workspace :
34
+ root : .
35
+ paths :
36
+ - node_modules
37
+ - examples
38
+ - packages
39
+ - run : yarn build
40
+ lint :
41
+ << : *defaults
42
+ steps :
43
+ - checkout
44
+ - attach_workspace :
45
+ at : .
46
+ - run : yarn lint
47
+ test :
48
+ << : *defaults
49
+ steps :
50
+ - checkout
51
+ - attach_workspace :
52
+ at : .
53
+ - run :
54
+ name : Test with compatibility checks
55
+ command : yarn test:compat
56
+ - persist_to_workspace :
57
+ root : .
58
+ paths :
59
+ - coverage
60
+ coverage :
61
+ << : *defaults
62
+ steps :
63
+ - checkout
64
+ - attach_workspace :
65
+ at : .
66
+ - codecov/upload :
67
+ file : coverage
68
+ examples :
69
+ << : *defaults
70
+ steps :
71
+ - checkout
72
+ - attach_workspace :
73
+ at : .
74
+ - run :
75
+ name : Test examples
76
+ command : yarn test:examples
77
+
78
+ workflows :
79
+ version : 2
80
+ build_test_deploy :
81
+ jobs :
82
+ - build
83
+ - lint :
84
+ requires :
85
+ - build
86
+ - test :
87
+ requires :
88
+ - build
89
+ - coverage :
90
+ requires :
91
+ - test
92
+ - examples :
93
+ requires :
94
+ - build
You can’t perform that action at this time.
0 commit comments