|
1 | 1 | version: 2.1
|
2 | 2 |
|
3 | 3 | aliases:
|
4 |
| - - &xcode-version 15.4.0 |
5 |
| - - &node-version '20.10.0' |
6 |
| - - &yarn-version '1.22.19' |
| 4 | + - &node-version '22.14.0' |
| 5 | + - &yarn-version '1.22.22' |
7 | 6 |
|
8 | 7 | orbs:
|
9 |
| - node: circleci/node@5.1.1 |
10 |
| - browser-tools: circleci/browser-tools@1.4.6 |
| 8 | + node: circleci/node@5.3.0 |
| 9 | + browser-tools: circleci/browser-tools@1.5.3 |
11 | 10 | android: circleci/[email protected]
|
12 | 11 |
|
13 | 12 | executors:
|
14 | 13 | node:
|
15 | 14 | docker:
|
16 |
| - - image: cimg/node:20.10.0 |
| 15 | + - image: cimg/node:22.14.0 |
17 | 16 | working_directory: ~/react-native-url-polyfill
|
18 | 17 | environment:
|
19 | 18 | NODE_OPTIONS: '--openssl-legacy-provider'
|
20 | 19 | node-browsers:
|
21 | 20 | docker:
|
22 |
| - - image: cimg/node:20.10.0-browsers |
| 21 | + - image: cimg/node:22.14.0-browsers |
23 | 22 | environment:
|
24 | 23 | NODE_OPTIONS: '--openssl-legacy-provider'
|
25 |
| - xcode: |
26 |
| - macos: |
27 |
| - xcode: *xcode-version |
28 |
| - environment: |
29 |
| - HOMEBREW_NO_AUTO_UPDATE: 1 |
30 |
| - XCODE_VERSION: *xcode-version |
31 |
| - NODE_OPTIONS: '--openssl-legacy-provider' |
32 | 24 | android:
|
33 | 25 | docker:
|
34 |
| - - image: cimg/android:2023.06.1 |
| 26 | + - image: cimg/android:2023.12.1-node |
35 | 27 | resource_class: large
|
36 | 28 | environment:
|
37 | 29 | JAVA_TOOL_OPTIONS: '-Xmx1536m'
|
@@ -194,15 +186,19 @@ jobs:
|
194 | 186 | command: yarn test
|
195 | 187 | test-ios:
|
196 | 188 | parameters:
|
197 |
| - executor: |
198 |
| - default: xcode |
199 |
| - type: executor |
200 | 189 | react-native-version:
|
201 | 190 | type: string
|
| 191 | + xcode-version: |
| 192 | + type: string |
202 | 193 | install-yarn:
|
203 | 194 | type: boolean
|
204 | 195 | default: true
|
205 |
| - executor: << parameters.executor >> |
| 196 | + macos: |
| 197 | + xcode: << parameters.xcode-version >> |
| 198 | + environment: |
| 199 | + HOMEBREW_NO_AUTO_UPDATE: 1 |
| 200 | + XCODE_VERSION: << parameters.xcode-version >> |
| 201 | + NODE_OPTIONS: '--openssl-legacy-provider' |
206 | 202 | working_directory: ~/react-native-url-polyfill/platforms/react-native/<< parameters.react-native-version >>
|
207 | 203 | steps:
|
208 | 204 | - attach-workspace
|
@@ -266,31 +262,6 @@ jobs:
|
266 | 262 | name: Build APK
|
267 | 263 | command: cd android && ./gradlew assembleRelease
|
268 | 264 | - save-android-build-cache
|
269 |
| - test-hermes-ios: |
270 |
| - parameters: |
271 |
| - executor: |
272 |
| - default: xcode |
273 |
| - type: executor |
274 |
| - react-native-version: |
275 |
| - type: string |
276 |
| - executor: << parameters.executor >> |
277 |
| - working_directory: ~/react-native-url-polyfill/platforms/react-native/<< parameters.react-native-version >> |
278 |
| - steps: |
279 |
| - - attach-workspace |
280 |
| - - restore-cache-detox-app |
281 |
| - - run: |
282 |
| - name: Enable Hermes |
283 |
| - command: npx shx sed -i "s/:hermes_enabled\s=>\sfalse/:hermes_enabled => true/g" ios/Podfile |
284 |
| - - install-node |
285 |
| - - install-yarn-dependencies |
286 |
| - - install-detox |
287 |
| - - run: |
288 |
| - name: Install Pods |
289 |
| - command: | |
290 |
| - cd ios && pod install |
291 |
| - - run: |
292 |
| - name: Run Detox on iOS |
293 |
| - command: yarn e2e:ios |
294 | 265 | test-expo-web:
|
295 | 266 | parameters:
|
296 | 267 | expo-version:
|
@@ -330,25 +301,26 @@ workflows:
|
330 | 301 | requires:
|
331 | 302 | - checkout
|
332 | 303 | - test-ios:
|
333 |
| - matrix: |
334 |
| - parameters: |
335 |
| - react-native-version: ['0.72'] |
| 304 | + name: test-ios-0.72 |
| 305 | + react-native-version: '0.72' |
| 306 | + xcode-version: 15.4.0 |
| 307 | + requires: |
| 308 | + - lint |
| 309 | + - test-js |
| 310 | + - test-ios: |
| 311 | + name: test-ios-0.78 |
| 312 | + react-native-version: '0.78' |
| 313 | + xcode-version: 16.2.0 |
336 | 314 | requires:
|
337 | 315 | - lint
|
338 | 316 | - test-js
|
339 | 317 | - test-android:
|
340 | 318 | matrix:
|
341 | 319 | parameters:
|
342 |
| - react-native-version: ['0.68', '0.72'] |
| 320 | + react-native-version: ['0.68', '0.72', '0.78'] |
343 | 321 | requires:
|
344 | 322 | - lint
|
345 | 323 | - test-js
|
346 |
| - # - test-hermes-ios: |
347 |
| - # matrix: |
348 |
| - # parameters: |
349 |
| - # react-native-version: ['0.68'] |
350 |
| - # requires: |
351 |
| - # - test-ios-<< matrix.react-native-version >> |
352 | 324 | - test-hermes-android:
|
353 | 325 | matrix:
|
354 | 326 | parameters:
|
|
0 commit comments