11name : test-ios-rntester
22description : Test iOS RNTester
33inputs :
4- use-frameworks :
5- description : The dependency building and linking strategy to use. Must be one of "StaticLibraries", "DynamicFrameworks"
6- default : StaticLibraries
74 ruby-version :
85 description : The version of ruby that must be used
96 default : 2.6.10
@@ -17,6 +14,10 @@ inputs:
1714 description : Whether we want to run E2E tests or not
1815 required : false
1916 default : false
17+ use-frameworks :
18+ description : Whether we have to build with Dynamic Frameworks. If this is set to true, it builds from source
19+ required : false
20+ default : false
2021
2122runs :
2223 using : composite
@@ -43,29 +44,34 @@ runs:
4344 if : ${{ inputs.run-unit-tests == 'true' }}
4445 uses : ./.github/actions/prepare-ios-tests
4546 - name : Download ReactNativeDependencies
47+ if : ${{ inputs.use-frameworks == 'false' }}
4648 uses : actions/download-artifact@v4
4749 with :
4850 name : ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz
4951 path : /tmp/third-party/
5052 - name : Print third-party folder
53+ if : ${{ inputs.use-frameworks == 'false' }}
5154 shell : bash
5255 run : ls -lR /tmp/third-party
5356 - name : Download React Native Prebuilds
57+ if : ${{ inputs.use-frameworks == 'false' }}
5458 uses : actions/download-artifact@v4
5559 with :
5660 name : ReactCore${{ inputs.flavor }}.xcframework.tar.gz
5761 path : /tmp/ReactCore
5862 - name : Print ReactCore folder
63+ if : ${{ inputs.use-frameworks == 'false' }}
5964 shell : bash
6065 run : ls -lR /tmp/ReactCore
6166 - name : Install CocoaPods dependencies
6267 shell : bash
6368 run : |
64- export RCT_USE_LOCAL_RN_DEP="/tmp/third-party/ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz"
65- export RCT_TESTONLY_RNCORE_TARBALL_PATH="/tmp/ReactCore/ReactCore${{ inputs.flavor }}.xcframework.tar.gz"
66-
67- if [[ ${{ inputs.use-frameworks }} == "DynamicFrameworks" ]]; then
69+ if [[ ${{ inputs.use-frameworks }} == "true" ]]; then
6870 export USE_FRAMEWORKS=dynamic
71+ else
72+ # If use-frameworks is false, let's use prebuilds
73+ export RCT_USE_LOCAL_RN_DEP="/tmp/third-party/ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz"
74+ export RCT_TESTONLY_RNCORE_TARBALL_PATH="/tmp/ReactCore/ReactCore${{ inputs.flavor }}.xcframework.tar.gz"
6975 fi
7076
7177 cd packages/rn-tester
@@ -108,7 +114,7 @@ runs:
108114 name : xcresults
109115 path : /Users/distiller/Library/Developer/Xcode/xcresults.tar.gz
110116 - name : Upload RNTester App
111- if : ${{ inputs.use-frameworks == 'StaticLibraries ' && inputs.ruby-version == '2.6.10' }} # This is needed to avoid conflicts with the artifacts
117+ if : ${{ inputs.use-frameworks == 'false ' && inputs.ruby-version == '2.6.10' }} # This is needed to avoid conflicts with the artifacts
112118 uses : actions/upload-artifact@v4.3.4
113119 with :
114120 name : RNTesterApp-NewArch-${{ inputs.flavor }}
0 commit comments