Skip to content

Commit 00e7269

Browse files
committed
fix: ✅ fixes test setup
1 parent 3e66208 commit 00e7269

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,23 @@ 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-cache-{{ checksum "yarn.lock" }}
20+
- yarn-cache-
1921

2022
- run:
2123
name: Enable Corepack
2224
command: corepack enable
2325

2426
- run:
2527
name: Install Node.js and Yarn Dependencies
26-
command: yarn install --network-timeout 300000
28+
command: yarn install --immutable --network-timeout 300000
2729
no_output_timeout: 20m
2830
environment:
2931
NODE_OPTIONS: "--max-old-space-size=4096"
@@ -37,10 +39,10 @@ jobs:
3739
command: cd apps/AEPSampleAppNewArchEnabled && npx expo prebuild
3840

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

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

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

9497
- run:
9598
name: Set Xcode Path
@@ -101,7 +104,7 @@ jobs:
101104

102105
- run:
103106
name: Install Node.js and Yarn Dependencies
104-
command: yarn install --network-timeout 300000
107+
command: yarn install --immutable --network-timeout 300000
105108
no_output_timeout: 20m
106109
environment:
107110
NODE_OPTIONS: "--max-old-space-size=4096"
@@ -115,10 +118,10 @@ jobs:
115118
command: cd apps/AEPSampleAppNewArchEnabled && npx expo prebuild
116119

117120
- save_cache:
118-
key: ios-yarn-cache-{{ checksum "yarn.lock" }}
119121
paths:
120-
- ./node_modules
121-
- ./apps/AEPSampleAppNewArchEnabled/node_modules
122+
- .yarn/cache
123+
- .yarn/unplugged
124+
key: yarn-cache-{{ 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)