Skip to content

Commit f209356

Browse files
Jaroslaw ZolnowskiSplaktar
authored andcommitted
chore(circleci): fix circlecI configuration
Fixes CU-86a7q4jxg
1 parent 40798fe commit f209356

File tree

1 file changed

+50
-16
lines changed

1 file changed

+50
-16
lines changed

.circleci/config.yml

Lines changed: 50 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,58 @@
11
version: 2.1
2+
3+
job_defaults: &job_defaults
4+
working_directory: ~/ng-build-monolithic
5+
docker:
6+
- image: cimg/node:lts-browsers
7+
28
orbs:
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

0 commit comments

Comments
 (0)