File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ # Defaults
4
+ default job config : &defaults
5
+ working_directory : ~/async_storage
6
+ docker :
7
+ - image : circleci/node:8
8
+
9
+ checkout step for each job : &addWorkspace
10
+ attach_workspace :
11
+ at : ~/
12
+
13
+
14
+ jobs :
15
+ " Setup environment " :
16
+ << : *defaults
17
+ steps :
18
+ - checkout
19
+ - restore_cache :
20
+ name : Restore node modules
21
+ keys :
22
+ - node_modules-{{ checksum "yarn.lock" }}-{{ checksum "package.json" }}-{{ arch }}
23
+ - run :
24
+ name : Install dependencies
25
+ command : yarn --pure-lockfile --non-interactive
26
+ - save_cache :
27
+ name : Save node modules
28
+ key : node_modules-{{ checksum "yarn.lock" }}-{{ checksum "package.json" }}-{{ arch }}
29
+ paths :
30
+ - node_modules
31
+ persist_to_workspace :
32
+ -root : .
33
+ -paths : .
34
+
35
+ " Test: lint " :
36
+ << : *defaults
37
+ steps :
38
+ - *addWorkspace
39
+ - run :
40
+ name : Lint check
41
+ command : yarn test:lint
42
+
43
+ " Test: flow " :
44
+ << : *defaults
45
+ steps :
46
+ - *addWorkspace
47
+ - run :
48
+ name : Flow check
49
+ command : yarn test:flow
50
+
51
+ workflows :
52
+ version : 2
53
+ " Basic check " :
54
+ jobs :
55
+ - " Setup environment"
56
+ - " Test: lint " :
57
+ requires :
58
+ - " Setup environment"
59
+ - " Test: flow " :
60
+ requires :
61
+ - " Setup environment"
You can’t perform that action at this time.
0 commit comments