Skip to content

Commit 81521eb

Browse files
committed
fix: ✅ fixes test setup
1 parent 3e66208 commit 81521eb

File tree

62 files changed

+3077
-2012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+3077
-2012
lines changed

.circleci/config.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@ jobs:
99
unit-test:
1010
docker:
1111
- image: cimg/node:18.20
12+
resource_class: large
1213

1314
steps:
1415
- checkout
1516

1617
- restore_cache:
1718
keys:
18-
- yarn-cache-{{ checksum "yarn.lock" }}
19+
- yarn-{{ .Branch }}-{{ checksum "yarn.lock" }}
20+
- yarn-{{ .Branch }}
21+
- yarn-
1922

2023
- run:
2124
name: Enable Corepack
2225
command: corepack enable
2326

2427
- run:
2528
name: Install Node.js and Yarn Dependencies
26-
command: yarn install --network-timeout 300000
29+
command: yarn install --immutable --immutable-cache --network-timeout 300000
2730
no_output_timeout: 20m
2831
environment:
2932
NODE_OPTIONS: "--max-old-space-size=4096"
@@ -37,10 +40,9 @@ jobs:
3740
command: cd apps/AEPSampleAppNewArchEnabled && npx expo prebuild
3841

3942
- save_cache:
40-
key: yarn-cache-{{ checksum "yarn.lock" }}
4143
paths:
42-
- ./node_modules
43-
- ./apps/AEPSampleAppNewArchEnabled/node_modules
44+
- .yarn/cache
45+
key: yarn-{{ .Branch }}-{{ checksum "yarn.lock" }}
4446

4547
- run:
4648
name: Unit Tests
@@ -89,7 +91,9 @@ jobs:
8991

9092
- restore_cache:
9193
keys:
92-
- ios-yarn-cache-{{ checksum "yarn.lock" }}
94+
- yarn-{{ .Branch }}-{{ checksum "yarn.lock" }}
95+
- yarn-{{ .Branch }}
96+
- yarn-
9397

9498
- run:
9599
name: Set Xcode Path
@@ -101,7 +105,7 @@ jobs:
101105

102106
- run:
103107
name: Install Node.js and Yarn Dependencies
104-
command: yarn install --network-timeout 300000
108+
command: yarn install --immutable --immutable-cache --network-timeout 300000
105109
no_output_timeout: 20m
106110
environment:
107111
NODE_OPTIONS: "--max-old-space-size=4096"
@@ -115,10 +119,9 @@ jobs:
115119
command: cd apps/AEPSampleAppNewArchEnabled && npx expo prebuild
116120

117121
- save_cache:
118-
key: ios-yarn-cache-{{ checksum "yarn.lock" }}
119122
paths:
120-
- ./node_modules
121-
- ./apps/AEPSampleAppNewArchEnabled/node_modules
123+
- .yarn/cache
124+
key: yarn-{{ .Branch }}-{{ checksum "yarn.lock" }}
122125

123126
- run:
124127
name: Install Cocoapods

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
nodeLinker: node-modules
2+
nmHoistingLimits: workspaces

0 commit comments

Comments
 (0)