@@ -30,13 +30,14 @@ jobs:
3030 run : |
3131 yarn workspace @callstack/react-native-brownfield brownfield --version
3232
33- rn -android :
34- name : Tester RN Android App & AAR
33+ tester -android :
34+ name : Integrated tester Android App
3535 runs-on : ubuntu-latest
3636 needs : build-lint
3737
3838 steps :
39- - uses : actions/checkout@v4
39+ - name : Checkout
40+ uses : actions/checkout@v4
4041
4142 - name : Setup Java
4243 uses : actions/setup-java@v4
@@ -56,11 +57,80 @@ jobs:
5657 - name : Build packages
5758 run : yarn build
5859
59- - name : Build Android RN app
60+ - name : Build integrated Android tester app
6061 run : |
61- cd apps/tester-from-source /kotlin
62+ cd apps/tester-integrated /kotlin
6263 ./gradlew assembleDebug
6364
65+ tester-ios :
66+ name : Integrated tester iOS App
67+ runs-on : macos-latest
68+ needs : build-lint
69+
70+ steps :
71+ - name : Checkout
72+ uses : actions/checkout@v4
73+
74+ - name : Use appropriate Xcode version
75+ uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
76+ with :
77+ xcode-version : ' 16'
78+
79+ - name : Setup Node.js
80+ uses : actions/setup-node@v4
81+ with :
82+ node-version : ' lts/*'
83+ cache : ' yarn'
84+
85+ - name : Setup Ruby
86+ uses : ruby/setup-ruby@v1
87+ with :
88+ ruby-version : ' 3.2'
89+ bundler-cache : true
90+
91+ - name : Install dependencies
92+ run : yarn install
93+
94+ - name : Build packages
95+ run : yarn build
96+
97+ - name : Install pods
98+ run : |
99+ cd apps/tester-integrated/swift
100+ pod install
101+
102+ - name : Build integrated iOS tester app
103+ run : |
104+ cd apps/RNApp/ios
105+ xcodebuild -workspace RNApp.xcworkspace -scheme RNApp -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16' build CODE_SIGNING_ALLOWED=NO
106+
107+ packaging-android :
108+ name : Android integration workflow with CLI
109+ runs-on : ubuntu-latest
110+ needs : tester-android
111+
112+ steps :
113+ - name : Checkout
114+ uses : actions/checkout@v4
115+
116+ - name : Setup Java
117+ uses : actions/setup-java@v4
118+ with :
119+ distribution : ' zulu'
120+ java-version : ' 17'
121+
122+ - name : Setup Node.js
123+ uses : actions/setup-node@v4
124+ with :
125+ node-version : ' lts/*'
126+ cache : ' yarn'
127+
128+ - name : Install dependencies
129+ run : yarn install
130+
131+ - name : Build packages
132+ run : yarn build
133+
64134 - name : Package AAR with the Brownfield CLI
65135 run : |
66136 cd apps/RNApp
@@ -77,18 +147,19 @@ jobs:
77147 - name : Verify release AAR exists in Maven Local
78148 run : stat ~/.m2/repository/com/rnapp/brownfieldlib/0.0.1-local/brownfieldlib-0.0.1-local-release.aar
79149
80- - name : Build Brownfield Android native app
150+ - name : Build native Android Brownfield app
81151 run : |
82152 cd apps/AndroidApp
83153 ./gradlew assembleDebug
84154
85- rn -ios :
86- name : Tester RN iOS App & XCFramework
155+ packaging -ios :
156+ name : iOS integration workflow with CLI
87157 runs-on : macos-latest
88- needs : build-lint
158+ needs : tester-ios
89159
90160 steps :
91- - uses : actions/checkout@v4
161+ - name : Checkout
162+ uses : actions/checkout@v4
92163
93164 - name : Use appropriate Xcode version
94165 uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
@@ -114,14 +185,9 @@ jobs:
114185 run : yarn build
115186
116187 - name : Install pods
117- run : |
118- cd apps/tester-from-source/swift
119- pod install
120-
121- - name : Build iOS RN app
122188 run : |
123189 cd apps/RNApp/ios
124- xcodebuild -workspace RNApp.xcworkspace -scheme RNApp -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16' build CODE_SIGNING_ALLOWED=NO
190+ pod install
125191
126192 - name : Package iOS Framework with the Brownfield CLI
127193 run : |
0 commit comments