46
46
- name : Build e2e binary
47
47
run : |
48
48
yarn build:e2e:android
49
- - name : Upload e2e binary
50
- if : github.event_name == 'pull_request'
51
- uses : actions/upload-artifact@v3
52
- with :
53
- name : app-release.apk
54
- path : example/android/app/build/outputs/apk/release/app-release.apk
49
+
55
50
ios :
56
51
name : iOS
57
- if : false # temp
58
52
runs-on : macos-latest
59
53
steps :
60
54
- name : Checkout
@@ -70,10 +64,10 @@ jobs:
70
64
with :
71
65
node-version : 18.16.1
72
66
cache : yarn
73
- - name : Set up environment
74
- run : |
75
- brew bundle --file=.github/Brewfile.ios --no-lock
76
- touch .watchmanconfig
67
+ # - name: Set up environment
68
+ # run: |
69
+ # brew bundle --file=.github/Brewfile.ios --no-lock
70
+ # touch .watchmanconfig
77
71
- name : Install JS dependencies
78
72
run : |
79
73
yarn
87
81
- name : Build e2e binary
88
82
run : |
89
83
yarn build:e2e:ios
90
- - name : Upload e2e binary
91
- uses : actions/upload-artifact@v3
92
- if : github.event_name == 'pull_request'
93
- with :
94
- name : ReactTestApp.app
95
- path : example/ios/build/Build/Products/Release-iphonesimulator/ReactTestApp.app
84
+
96
85
macos :
97
86
name : macOS
98
87
if : false # TEMP, Remove once done this PR
@@ -128,6 +117,7 @@ jobs:
128
117
if : false
129
118
run : |
130
119
yarn test:e2e:macos
120
+
131
121
windows :
132
122
name : Windows
133
123
if : false # TEMP, Remove once done this PR
@@ -154,80 +144,6 @@ jobs:
154
144
run : |
155
145
yarn react-native run-windows --release --arch x64 --logging --no-packager --no-launch --no-deploy --msbuildprops "BundleEntryFile=index.ts" --no-telemetry
156
146
157
-
158
- e2e-tests :
159
- name : Run e2e tests
160
- needs : [review, android]
161
- if : github.event_name == 'pull_request'
162
- strategy :
163
- matrix :
164
- platform : [ android ] # TEMP removed ios
165
- runs-on : macos-latest
166
- steps :
167
- - name : Checkout
168
- uses : actions/checkout@v3
169
- - name : Set up Node.js
170
-
171
- with :
172
- node-version : 18.16.1
173
- cache : yarn
174
- - name : Install JS dependencies
175
- run : |
176
- yarn
177
- - name : Gradle cache
178
- uses : gradle/gradle-build-action@v2
179
-
180
- # ios part
181
- - name : Download iOS binary
182
- uses : actions/download-artifact@v3
183
- if : matrix.platform == 'ios'
184
- with :
185
- name : ReactTestApp.app
186
- path : example/ios/build/Build/Products/Release-iphonesimulator/ReactTestApp.app
187
- - uses : futureware-tech/simulator-action@v2
188
- if : matrix.platform == 'ios'
189
- with :
190
- model : ' iPhone 14'
191
- - name : Run iOS e2e
192
- if : matrix.platform == 'ios'
193
- run : |
194
- yarn test:e2e:ios
195
-
196
- # android part
197
- - name : Download android binary
198
- uses : actions/download-artifact@v3
199
- if : matrix.platform == 'android'
200
- with :
201
- name : app-release.apk
202
- path : example/android/app/build/outputs/apk/release/
203
- - name : AVD cache
204
- if : matrix.platform == 'android'
205
- uses : actions/cache@v3
206
- id : avd-cache
207
- with :
208
- path : |
209
- ~/.android/avd/*
210
- ~/.android/adb*
211
- key : avd-29
212
- - name : create AVD and generate snapshot for caching
213
- if : matrix.platform == 'android' && steps.avd-cache.outputs.cache-hit != 'true'
214
- uses : reactivecircus/android-emulator-runner@v2
215
- with :
216
- api-level : 29
217
- force-avd-creation : false
218
- emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
219
- disable-animations : false
220
- script : echo "Generated AVD snapshot for caching."
221
- - name : Run Android e2e tests
222
- if : matrix.platform == 'android'
223
- uses : reactivecircus/android-emulator-runner@v2
224
- with :
225
- api-level : 29
226
- force-avd-creation : false
227
- emulator-options : -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
228
- disable-animations : true
229
- script : yarn test:e2e:android
230
-
231
147
release :
232
148
name : Release
233
149
needs : [review, android, ios, macos, windows]
0 commit comments