File tree Expand file tree Collapse file tree 1 file changed +50
-16
lines changed Expand file tree Collapse file tree 1 file changed +50
-16
lines changed Original file line number Diff line number Diff line change 11version : 2.1
2+
3+ job_defaults : &job_defaults
4+ working_directory : ~/ng-build-monolithic
5+ docker :
6+ - image : cimg/node:lts-browsers
7+
28orbs :
3- browser-tools : circleci/browser-tools@1.2.3
4- jobs :
5- build :
6- docker :
7- - image : cimg/node:16.13.1-browsers
9+ node : circleci/node@5.2.0
10+ build-tools : circleci/build-tools@3.0.0
11+ browser-tools : circleci/browser-tools@1.5.3
12+
13+ commands :
14+ checkout_and_rebase :
15+ description : Checkout and verify clean merge with main branch
816 steps :
917 - checkout
10- - browser-tools/install-chrome
11- - browser-tools/install-chromedriver
1218 - run :
19+ name : Set git user.name and user.email for rebase.
20+ # User is required for rebase.
1321 command : |
14- google-chrome --version
15- chromedriver --version
16- name : Check install
17- - restore_cache :
18- key : ng-project-{{ .Branch }}-{{ checksum "package-lock.json" }}
19- - run : npm install
20- - save_cache :
21- key : ng-project-{{ .Branch }}-{{ checksum "package-lock.json" }}
22+ git config user.name "devintent-ci"
23+ git config user.email "ci@devintent.com"
24+ - build-tools/merge-with-parent :
25+ parent : main
26+
27+ setup :
28+ description : ' Set up executor'
29+ steps :
30+ - attach_workspace :
31+ at : ~/
32+
33+ jobs :
34+ initialize :
35+ << : *job_defaults
36+ steps :
37+ - checkout_and_rebase
38+ - browser-tools/install-chrome
39+ - browser-tools/install-chromedriver
40+ - node/install-packages
41+ - persist_to_workspace :
42+ root : ~/
2243 paths :
23- - " node_modules"
44+ - ng-build-monolithic
45+
46+ build :
47+ << : *job_defaults
48+ steps :
49+ - setup
2450 - run : npm run build
51+
52+ workflows :
53+ build :
54+ jobs :
55+ - initialize
56+ - build :
57+ requires :
58+ - initialize
You can’t perform that action at this time.
0 commit comments