@@ -8,49 +8,52 @@ _defaults: &defaults
8
8
_post_checkout : &post_checkout
9
9
post : git pull --ff-only origin "refs/pull/${CI_PULL_REQUEST//*pull\//}/merge"
10
10
11
- _root_package_lock_key : &_root_package_lock_key
12
- key : angular_devkit-{{ checksum "yarn.lock" }}-0.3.3
11
+ _root_package_lock_key : &root_package_lock_key
12
+ key : angular_devkit-{{ checksum "yarn.lock" }}-0.3.3-2
13
+
14
+ _attach_options : &attach_options
15
+ at : .
13
16
14
17
jobs :
15
18
install :
16
19
<< : *defaults
17
20
steps :
18
21
- checkout : *post_checkout
19
- - restore_cache : *_root_package_lock_key
22
+ - restore_cache : *root_package_lock_key
20
23
- run : yarn install --frozen-lockfile
24
+ - persist_to_workspace :
25
+ root : .
26
+ paths :
27
+ - ./*
21
28
- save_cache :
22
- << : *_root_package_lock_key
29
+ << : *root_package_lock_key
23
30
paths :
24
- - " node_modules "
31
+ - ~/.cache/yarn
25
32
26
33
lint :
27
34
<< : *defaults
28
35
steps :
29
- - checkout : *post_checkout
30
- - restore_cache : *_root_package_lock_key
36
+ - attach_workspace : *attach_options
31
37
- run : npm run lint
32
38
33
39
validate :
34
40
<< : *defaults
35
41
steps :
36
- - checkout : *post_checkout
37
- - restore_cache : *_root_package_lock_key
42
+ - attach_workspace : *attach_options
38
43
- run : npm run validate -- --ci
39
44
40
45
test :
41
46
<< : *defaults
42
47
steps :
43
- - checkout : *post_checkout
44
- - restore_cache : *_root_package_lock_key
48
+ - attach_workspace : *attach_options
45
49
- run : npm run test -- --code-coverage --full
46
50
47
51
test-large :
48
52
<< : *defaults
49
53
resource_class : large
50
54
parallelism : 4
51
55
steps :
52
- - checkout : *post_checkout
53
- - restore_cache : *_root_package_lock_key
56
+ - attach_workspace : *attach_options
54
57
- run : npm run webdriver-update-circleci
55
58
- run : npm run test-large -- --code-coverage --full --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
56
59
@@ -61,31 +64,28 @@ jobs:
61
64
resource_class : xlarge
62
65
parallelism : 4
63
66
steps :
64
- - checkout : *post_checkout
65
- - restore_cache : *_root_package_lock_key
67
+ - attach_workspace : *attach_options
66
68
-
run :
npm install --global [email protected]
67
69
- run : xvfb-run -a node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
68
70
69
71
build :
70
72
<< : *defaults
71
73
steps :
72
- - checkout : *post_checkout
73
- - restore_cache : *_root_package_lock_key
74
+ - attach_workspace : *attach_options
74
75
- run : npm run admin -- build
75
76
76
77
build-bazel :
77
78
<< : *defaults
78
79
resource_class : large
79
80
steps :
80
- - checkout : *post_checkout
81
+ - attach_workspace : *attach_options
81
82
- run : sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
82
83
- run : bazel build //packages/...
83
84
84
85
snapshot_publish :
85
86
<< : *defaults
86
87
steps :
87
- - checkout : *post_checkout
88
- - restore_cache : *_root_package_lock_key
88
+ - attach_workspace : *attach_options
89
89
- run :
90
90
name : Decrypt Credentials
91
91
command : |
98
98
publish :
99
99
<< : *defaults
100
100
steps :
101
- - checkout : *post_checkout
102
- - restore_cache : *_root_package_lock_key
101
+ - attach_workspace : *attach_options
103
102
- run :
104
103
name : Decrypt Credentials
105
104
command : |
0 commit comments