@@ -8,49 +8,52 @@ _defaults: &defaults
88_post_checkout : &post_checkout
99 post : git pull --ff-only origin "refs/pull/${CI_PULL_REQUEST//*pull\//}/merge"
1010
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 : .
1316
1417jobs :
1518 install :
1619 << : *defaults
1720 steps :
1821 - checkout : *post_checkout
19- - restore_cache : *_root_package_lock_key
22+ - restore_cache : *root_package_lock_key
2023 - run : yarn install --frozen-lockfile
24+ - persist_to_workspace :
25+ root : .
26+ paths :
27+ - ./*
2128 - save_cache :
22- << : *_root_package_lock_key
29+ << : *root_package_lock_key
2330 paths :
24- - " node_modules "
31+ - ~/.cache/yarn
2532
2633 lint :
2734 << : *defaults
2835 steps :
29- - checkout : *post_checkout
30- - restore_cache : *_root_package_lock_key
36+ - attach_workspace : *attach_options
3137 - run : npm run lint
3238
3339 validate :
3440 << : *defaults
3541 steps :
36- - checkout : *post_checkout
37- - restore_cache : *_root_package_lock_key
42+ - attach_workspace : *attach_options
3843 - run : npm run validate -- --ci
3944
4045 test :
4146 << : *defaults
4247 steps :
43- - checkout : *post_checkout
44- - restore_cache : *_root_package_lock_key
48+ - attach_workspace : *attach_options
4549 - run : npm run test -- --code-coverage --full
4650
4751 test-large :
4852 << : *defaults
4953 resource_class : large
5054 parallelism : 4
5155 steps :
52- - checkout : *post_checkout
53- - restore_cache : *_root_package_lock_key
56+ - attach_workspace : *attach_options
5457 - run : npm run webdriver-update-circleci
5558 - run : npm run test-large -- --code-coverage --full --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
5659
@@ -61,31 +64,28 @@ jobs:
6164 resource_class : xlarge
6265 parallelism : 4
6366 steps :
64- - checkout : *post_checkout
65- - restore_cache : *_root_package_lock_key
67+ - attach_workspace : *attach_options
6668 - run : npm install --global npm@6.1
6769 - run : xvfb-run -a node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
6870
6971 build :
7072 << : *defaults
7173 steps :
72- - checkout : *post_checkout
73- - restore_cache : *_root_package_lock_key
74+ - attach_workspace : *attach_options
7475 - run : npm run admin -- build
7576
7677 build-bazel :
7778 << : *defaults
7879 resource_class : large
7980 steps :
80- - checkout : *post_checkout
81+ - attach_workspace : *attach_options
8182 - run : sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
8283 - run : bazel build //packages/...
8384
8485 snapshot_publish :
8586 << : *defaults
8687 steps :
87- - checkout : *post_checkout
88- - restore_cache : *_root_package_lock_key
88+ - attach_workspace : *attach_options
8989 - run :
9090 name : Decrypt Credentials
9191 command : |
9898 publish :
9999 << : *defaults
100100 steps :
101- - checkout : *post_checkout
102- - restore_cache : *_root_package_lock_key
101+ - attach_workspace : *attach_options
103102 - run :
104103 name : Decrypt Credentials
105104 command : |
0 commit comments