@@ -360,7 +360,7 @@ jobs:
360
360
command : |
361
361
REPO_ROOT=$(pwd)
362
362
node ./scripts/releases/update-template-package.js "{\"react-native\":\"file:$REPO_ROOT/build/$(cat build/react-native-package-version)\"}"
363
- node ./scripts/e2e/init- template-e2e .js --projectName $ PROJECT_NAME --templatePath "$REPO_ROOT/packages/react-native" --directory "/tmp/$PROJECT_NAME" --verbose
363
+ node ./scripts/template/initialize .js --reactNativeRootPath $REPO_ROOT --templateName $ PROJECT_NAME --templateConfigPath "$REPO_ROOT/packages/react-native" --directory "/tmp/$PROJECT_NAME"
364
364
- with_gradle_cache :
365
365
steps :
366
366
- run :
@@ -458,7 +458,7 @@ jobs:
458
458
PACKAGE=$(cat build/react-native-package-version)
459
459
PATH_TO_PACKAGE="$REPO_ROOT/build/$PACKAGE"
460
460
node ./scripts/releases/update-template-package.js "{\"react-native\":\"file:$PATH_TO_PACKAGE\"}"
461
- node ./scripts/e2e/init- template-e2e .js --projectName $ PROJECT_NAME --templatePath "$REPO_ROOT/packages/react-native" --directory "/tmp/$PROJECT_NAME" --verbose
461
+ node ./scripts/template/initialize .js --reactNativeRootPath $REPO_ROOT --templateName $ PROJECT_NAME --templateConfigPath "$REPO_ROOT/packages/react-native" --directory "/tmp/$PROJECT_NAME"
462
462
- with_xcodebuild_cache :
463
463
podfile_lock_path : << parameters.podfile_lock_path >>
464
464
pods_build_folder : << parameters.pods_build_folder >>
@@ -590,6 +590,139 @@ jobs:
590
590
steps :
591
591
- run_ios_tests
592
592
593
+ # -------------------------
594
+ # JOBS: Test visionOS RNTester
595
+ # -------------------------
596
+ test_visionos_rntester :
597
+
598
+ parameters :
599
+ jsengine :
600
+ default : " JSC"
601
+ description : Which JavaScript engine to use. Must be one of "Hermes", "JSC".
602
+ type : enum
603
+ enum : ["Hermes", "JSC"]
604
+ architecture :
605
+ default : " OldArch"
606
+ description : Which React Native architecture to use. Must be one of "OldArch", "NewArch".
607
+ type : enum
608
+ enum : ["NewArch", "OldArch"]
609
+ use_frameworks :
610
+ default : " StaticLibraries"
611
+ description : The dependency building and linking strategy to use. Must be one of "StaticLibraries", "DynamicFrameworks"
612
+ type : enum
613
+ enum : ["StaticLibraries", "DynamicFrameworks"]
614
+ ruby_version :
615
+ default : " 2.6.10"
616
+ description : The version of ruby that must be used
617
+ type : string
618
+ run_unit_tests :
619
+ description : whether unit tests should run or not.
620
+ default : false
621
+ type : boolean
622
+ executor :
623
+ description : The executor to use
624
+ default : reactnative-visionos
625
+ type : string
626
+ executor : << parameters.executor >>
627
+ steps :
628
+ - checkout_code_with_cache
629
+ - run_yarn
630
+ - setup_ruby :
631
+ ruby_version : << parameters.ruby_version >>
632
+ - with_xcodebuild_cache :
633
+ steps :
634
+ - run :
635
+ name : " Install pods"
636
+ command : |
637
+ if [[ << parameters.architecture >> == "NewArch" ]]; then
638
+ export RCT_NEW_ARCH_ENABLED=1
639
+ fi
640
+
641
+ if [[ << parameters.jsengine >> == "JSC" ]]; then
642
+ export USE_HERMES=0
643
+ fi
644
+
645
+ if [[ << parameters.use_frameworks >> == "DynamicFrameworks" ]]; then
646
+ export USE_FRAMEWORKS=dynamic
647
+ fi
648
+
649
+ cd packages/rn-tester
650
+
651
+ bundle install
652
+ bundle exec pod install
653
+ - run :
654
+ name : " Build rn-tester"
655
+ command : |
656
+ xcodebuild build \
657
+ -workspace packages/rn-tester/RNTesterPods.xcworkspace \
658
+ -scheme RNTester-visionOS \
659
+ -sdk xrsimulator
660
+
661
+ # -------------------------
662
+ # JOBS: Windows
663
+ # -------------------------
664
+ test_windows :
665
+ executor :
666
+ name : win/default
667
+ environment :
668
+ - CHOCO_CACHE_DIR : " C:\\ ChocoCache"
669
+ steps :
670
+ - checkout_code_with_cache
671
+
672
+ - restore_cache :
673
+ keys :
674
+ - *windows_choco_cache_key
675
+
676
+ - run :
677
+ name : Choco cache
678
+ # Cache our dependencies which can be flakey to download
679
+ command : |
680
+ if (!Test-Path $env:CHOCO_CACHE_DIR) {
681
+ mkdir $env:CHOCO_CACHE_DIR
682
+ }
683
+ choco config set --name cacheLocation --value $env:CHOCO_CACHE_DIR
684
+
685
+ - run :
686
+ name : Disable NVM
687
+ # Use choco to manage node versions due to https://github.com/npm/cli/issues/4234
688
+ command : nvm off
689
+
690
+ - run :
691
+ name : Install Node JS
692
+ # Note: Version set separately for non-Windows builds, see above.
693
+ command : choco install nodejs --version=18.18.0 --allow-downgrade -y
694
+
695
+ # Setup Dependencies
696
+ - run :
697
+ name : Enable Yarn with corepack
698
+ command : corepack enable
699
+
700
+ - restore_cache :
701
+ keys :
702
+ - *windows_yarn_cache_key
703
+ - run :
704
+ name : " Yarn: Install Dependencies"
705
+ command : yarn install --frozen-lockfile --non-interactive
706
+
707
+ - save_cache :
708
+ key : *windows_yarn_cache_key
709
+ paths :
710
+ - C:\Users\circleci\AppData\Local\Yarn
711
+
712
+ - save_cache :
713
+ key : *windows_choco_cache_key
714
+ paths :
715
+ - $env:CHOCO_CACHE_DIR
716
+
717
+ # -------------------------
718
+ # Run Tests
719
+ - run :
720
+ name : " Flow Check"
721
+ command : yarn flow-check
722
+ - run :
723
+ name : " Run Tests: JavaScript Tests"
724
+ command : yarn test
725
+
593
726
# -------------------------
594
727
# JOBS: Build Hermes
595
728
# -------------------------
@@ -1250,4 +1383,4 @@ jobs:
1250
1383
command : echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc
1251
1384
- run :
1252
1385
name : Find and publish all bumped packages
1253
- command : node ./scripts/releases-ci/ publish-updated -packages.js
1386
+ command : node ./scripts/monorepo/find-and- publish-all-bumped -packages.js
0 commit comments