File tree Expand file tree Collapse file tree 1 file changed +44
-17
lines changed Expand file tree Collapse file tree 1 file changed +44
-17
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
- jobs :
3
- build :
4
- docker :
5
- - image : vuejs/ci
6
2
7
- working_directory : ~/repo
3
+ defaults : &defaults
4
+ docker :
5
+ - image : vuejs/ci
6
+ working_directory : ~/project/vue
8
7
8
+ jobs :
9
+ install :
10
+ << : *defaults
9
11
steps :
10
12
- checkout
11
-
12
13
- restore_cache :
13
14
keys :
14
15
- v1-dependencies-{{ checksum "yarn.lock" }}
15
16
- v1-dependencies-
16
-
17
17
- run :
18
18
name : Install Dependencies
19
19
command : yarn --frozen-lockfile
20
-
21
20
- save_cache :
22
21
paths :
23
22
- node_modules
24
23
- ~/.cache/yarn
25
24
key : v1-dependencies-{{ checksum "yarn.lock" }}
25
+ - persist_to_workspace :
26
+ root : ~/project
27
+ paths :
28
+ - vue
26
29
27
- - run :
28
- name : Run Tests
29
- command : yarn test --ci --runInBand
30
+ test :
31
+ << : *defaults
32
+ steps :
33
+ - attach_workspace :
34
+ at : ~/project
35
+ - run : yarn test --ci --runInBand
30
36
31
- - run :
32
- name : Test d.ts
33
- command : yarn test-dts
37
+ test-dts :
38
+ << : *defaults
39
+ steps :
40
+ - attach_workspace :
41
+ at : ~/project
42
+ - run : yarn test-dts
34
43
35
- - run :
36
- name : Check size
37
- command : yarn size
44
+ check-size :
45
+ << : *defaults
46
+ steps :
47
+ - attach_workspace :
48
+ at : ~/project
49
+ - run : yarn size
50
+
51
+ workflows :
52
+ version : 2
53
+ ci :
54
+ jobs :
55
+ - install
56
+ - test :
57
+ requires :
58
+ - install
59
+ - test-dts :
60
+ requires :
61
+ - install
62
+ - check-size :
63
+ requires :
64
+ - install
You can’t perform that action at this time.
0 commit comments