Repository navigation
527 lines (505 loc) · 23.1 KB
/
Copy pathe2e-test-cron.yml
File metadata and controls
527 lines (505 loc) · 23.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
name: E2E Tests Nightly
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
inputs:
ios:
description: "Run iOS e2e tests"
type: boolean
default: true
android:
description: "Run Android e2e tests"
type: boolean
default: true
mock_server_branch:
description: "stream-chat-test-mock-server branch"
type: string
default: "main"
permissions:
contents: read
# Downloads the previous map, whose coverage failed tests keep.
actions: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}:${{ inputs.mock_server_branch || 'main' }}
cancel-in-progress: true
env:
MOCK_SERVER_BRANCH: ${{ inputs.mock_server_branch || 'main' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
# node_modules of the e2e app and the workspaces it depends on (nmHoistingLimits: workspaces
# keeps them apart); `yarn workspaces focus` installs nothing else.
NODE_MODULES_PATHS: |
node_modules
configs/*/node_modules
package/node_modules
package/native-package/node_modules
examples/E2ETestApp/node_modules
.yarn/install-state.gz
jobs:
ios:
name: Test iOS ${{ matrix.ios }}
if: (github.event_name == 'schedule' || inputs.ios) && (inputs.mock_server_branch || 'main') == 'main'
runs-on: xcode-27
timeout-minutes: 360
strategy:
fail-fast: false
matrix:
include:
- ios: "27.2"
device: "iPhone 18 Pro"
setup_runtime: false
# The oldest runtime the Flutter nightly covers; the runner image doesn't ship it.
- ios: "17.5"
device: "iPhone 15 Pro"
setup_runtime: true
env:
DETOX_IOS_DEVICE: ${{ matrix.device }}
IOS_VERSION: ${{ matrix.ios }}
# Pinned to match the simulator runtimes this job selects.
XCODE_VERSION: "27.2"
APP_PATH: examples/E2ETestApp/ios/build/detox/Build/Products/Release-iphonesimulator/E2ETestApp.app
MOCK_SERVER_BUNDLE_PATH: ${{ github.workspace }}/../mock-server-gems
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: "yarn"
cache-dependency-path: "yarn.lock"
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
- uses: ./.github/actions/ruby-cache
- uses: ./.github/actions/setup-ios-runtime
if: matrix.setup_runtime
with:
version: ${{ matrix.ios }}
device: ${{ matrix.device }}
# A fresh simulator takes minutes to boot on CI; boot it now so that overlaps with setup.
- name: Boot simulator
run: |
runtime="com.apple.CoreSimulator.SimRuntime.iOS-${IOS_VERSION//./-}"
udid=$(xcrun simctl list devices available -j |
jq -r --arg rt "$runtime" --arg name "$DETOX_IOS_DEVICE" '.devices[$rt][]? | select(.name == $name) | .udid' | head -1)
if [ -z "$udid" ]; then
# Detox would pick a simulator of the same type on another iOS version.
if [ "${{ matrix.setup_runtime }}" = "true" ]; then
echo "::error::No $DETOX_IOS_DEVICE on iOS $IOS_VERSION"
exit 1
fi
echo "::warning::No $DETOX_IOS_DEVICE on iOS $IOS_VERSION; Detox will pick and boot a simulator itself"
exit 0
fi
echo "DETOX_IOS_UDID=$udid" >> "$GITHUB_ENV"
nohup xcrun simctl boot "$udid" > /dev/null 2>&1 &
- name: Restore node_modules
id: node-modules
uses: actions/cache/restore@v5
with:
path: ${{ env.NODE_MODULES_PATHS }}
key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn workspaces focus e2etestapp
- name: Save node_modules
if: steps.node-modules.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: ${{ env.NODE_MODULES_PATHS }}
key: ${{ steps.node-modules.outputs.cache-primary-key }}
# --- App binary: rebuilt only when the app or SDK sources change, not for test-only changes ---
- name: Restore app
id: app
uses: actions/cache/restore@v5
with:
path: ${{ env.APP_PATH }}
key: e2e-ios-app-xcode${{ env.XCODE_VERSION }}-${{ hashFiles('yarn.lock', 'package/package.json', 'package/src/**', 'package/shared-native/**', 'package/native-package/package.json', 'package/native-package/src/**', 'package/native-package/ios/**', 'package/native-package/*.podspec', 'examples/SampleApp/Gemfile.lock', 'examples/E2ETestApp/*.js', '!examples/E2ETestApp/.detoxrc.js', 'examples/E2ETestApp/*.json', 'examples/E2ETestApp/*.tsx', 'examples/E2ETestApp/src/**', 'examples/E2ETestApp/ios/**', '!examples/E2ETestApp/ios/build/**', '!examples/E2ETestApp/ios/Pods/**') }}
- name: Set up ccache
if: steps.app.outputs.cache-hit != 'true'
uses: hendrikmuhs/ccache-action@v1.2
with:
key: e2e-ios-xcode${{ env.XCODE_VERSION }}
max-size: 1500M
- name: Point the RN ccache wrappers at ccache
if: steps.app.outputs.cache-hit != 'true'
# RN's ccache-clang.sh runs `$CCACHE_BINARY clang`, but Xcode doesn't export that build
# setting to the compiler, so without this every compile silently skips ccache.
run: echo "CCACHE_BINARY=$(which ccache)" >> "$GITHUB_ENV"
- name: Cache pods
if: steps.app.outputs.cache-hit != 'true'
uses: actions/cache@v5
with:
path: examples/E2ETestApp/ios/Pods
key: ${{ runner.os }}-e2e-pods-${{ hashFiles('examples/E2ETestApp/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-e2e-pods-
- name: Install pods
if: steps.app.outputs.cache-hit != 'true'
working-directory: examples/SampleApp
run: USE_CCACHE=1 bundle exec fastlane e2e_pod_install
- name: Build app
if: steps.app.outputs.cache-hit != 'true'
working-directory: examples/E2ETestApp
run: yarn e2e:build -c ios.sim.release
- name: Save app
if: steps.app.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: ${{ env.APP_PATH }}
key: ${{ steps.app.outputs.cache-primary-key }}
- name: Install applesimutils
# Homebrew refuses formulae from non-official taps until they are trusted.
run: brew tap wix/brew && brew trust --formula wix/brew/applesimutils && brew install wix/brew/applesimutils
- name: Restore Detox framework
id: detox-framework
uses: actions/cache/restore@v5
with:
path: ~/Library/Detox
key: ${{ runner.os }}-detox-framework-xcode${{ env.XCODE_VERSION }}-${{ hashFiles('yarn.lock') }}
# Yarn's `enableScripts: false` skips Detox's postinstall, which would build this.
- name: Build Detox framework
if: steps.detox-framework.outputs.cache-hit != 'true'
working-directory: examples/E2ETestApp
run: yarn detox build-framework-cache
- name: Save Detox framework
if: steps.detox-framework.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: ~/Library/Detox
key: ${{ steps.detox-framework.outputs.cache-primary-key }}
- name: Resolve mock server revision
id: mock-server
run: echo "sha=$(git ls-remote https://github.com/GetStream/stream-chat-test-mock-server "refs/heads/$MOCK_SERVER_BRANCH" | cut -f1)" >> "$GITHUB_OUTPUT"
- name: Cache mock server gems
uses: actions/cache@v5
with:
path: ${{ env.MOCK_SERVER_BUNDLE_PATH }}
key: ${{ runner.os }}-mock-server-gems-${{ steps.mock-server.outputs.sha }}
restore-keys: |
${{ runner.os }}-mock-server-gems-
- name: Wait for the simulator
if: env.DETOX_IOS_UDID != ''
timeout-minutes: 15
# `-b` boots it if the background boot never started; it errors (405) when the device is
# already booted, and then the plain call returns at once.
run: xcrun simctl bootstatus "$DETOX_IOS_UDID" -b || xcrun simctl bootstatus "$DETOX_IOS_UDID"
- name: Launch Allure TestOps
if: env.ALLURE_TOKEN != ''
working-directory: examples/SampleApp
run: bundle exec fastlane allure_launch cron:true
continue-on-error: true
# A macos-15 runner is about 4x slower than an M-series Mac: one pass takes well over an hour,
# and the retries come on top (the Flutter nightly allows 360 minutes too). Below the job
# timeout, so an overrunning suite fails instead of cancelling the job, and the Allure upload,
# the logs and the Slack report still run.
- name: Run e2e tests
timeout-minutes: 300
working-directory: examples/SampleApp
run: bundle exec fastlane test_e2e platform:ios skip_build:true mock_server_branch:"$MOCK_SERVER_BRANCH"
- name: Upload Allure results
if: env.LAUNCH_ID != '' && (success() || failure())
working-directory: examples/SampleApp
run: bundle exec fastlane allure_upload launch_id:"$LAUNCH_ID"
- name: Allure TestOps Launch Removal
if: env.LAUNCH_ID != '' && cancelled()
working-directory: examples/SampleApp
run: bundle exec fastlane allure_launch_removal launch_id:"$LAUNCH_ID"
- uses: actions/upload-artifact@v6
if: failure()
with:
name: e2e-ios-nightly-logs-${{ matrix.ios }}
path: |
examples/E2ETestApp/stream-chat-test-mock-server/logs
examples/E2ETestApp/artifacts
# Built once per flavor and shared by the test jobs, as on pull requests.
# Saves the AVD with a quick-boot snapshot for the e2e-test.yml batches. Here, because a cache
# saved by a pull request is visible to that pull request alone, and one saved on develop to all.
android-avd:
name: Android emulator snapshot
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: ./.github/actions/android-sdk-packages
id: sdk
- name: Look up the AVD
id: avd
uses: actions/cache/restore@v5
with:
path: |
~/.android/avd/*
~/.android/adb*
key: ${{ steps.sdk.outputs.avd-key }}
lookup-only: true
- name: Create the AVD and its snapshot
if: steps.avd.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
with:
api-level: ${{ steps.sdk.outputs.api-level }}
target: ${{ steps.sdk.outputs.target }}
arch: x86_64
profile: ${{ steps.sdk.outputs.profile }}
cores: ${{ steps.sdk.outputs.cores }}
force-avd-creation: false
emulator-options: ${{ steps.sdk.outputs.emulator-options }}
disable-animations: true
# Lets dexopt finish, so the snapshot holds a settled system.
script: |
"$ANDROID_HOME/platform-tools/adb" -s emulator-5554 shell cmd package bg-dexopt-job > /dev/null 2>&1 || true
sleep 30
# adb emu kill returns before the snapshot is written. On timeout, nothing is saved.
- name: Wait for the emulator to save the snapshot
if: steps.avd.outputs.cache-hit != 'true'
timeout-minutes: 3
run: while pgrep -f qemu-system > /dev/null; do sleep 1; done
- name: Save the AVD
if: steps.avd.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: |
~/.android/avd/*
~/.android/adb*
key: ${{ steps.sdk.outputs.avd-key }}
android-build:
name: Build Android (${{ matrix.coverage && 'coverage' || 'plain' }})
if: github.event_name == 'schedule' || inputs.android || (inputs.mock_server_branch || 'main') != 'main'
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
# The coverage runs need a bundle instrumented with E2E_COVERAGE; the others test the plain app.
# Coverage is only collected against the main mock server.
coverage: ${{ fromJson((inputs.mock_server_branch || 'main') != 'main' && '[false]' || '[true, false]') }}
env:
APK_PATHS: |
examples/E2ETestApp/android/app/build/outputs/apk/release/app-release.apk
examples/E2ETestApp/android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk
# The emulator is x86_64: skip compiling native code for the other ABIs.
ORG_GRADLE_PROJECT_reactNativeArchitectures: x86_64
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: "yarn"
cache-dependency-path: "yarn.lock"
- uses: actions/setup-java@v5
with:
distribution: "zulu"
java-version: "21"
- uses: gradle/actions/setup-gradle@v4
- name: Restore node_modules
id: node-modules
uses: actions/cache/restore@v5
with:
path: ${{ env.NODE_MODULES_PATHS }}
key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn workspaces focus e2etestapp
- name: Save node_modules
if: steps.node-modules.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: ${{ env.NODE_MODULES_PATHS }}
key: ${{ steps.node-modules.outputs.cache-primary-key }}
# The nightly build is never cached, so every Gradle plugin and dependency is downloaded; a
# transient repository outage (plugin portal, 2026-11-10) must not cost the whole night.
- name: Build app
working-directory: examples/E2ETestApp
run: yarn e2e:build -c android.att.release || { sleep 60; yarn e2e:build -c android.att.release; }
env:
E2E_COVERAGE: ${{ matrix.coverage && '1' || '0' }}
- uses: actions/upload-artifact@v6
with:
name: e2e-android-apks-${{ matrix.coverage && 'coverage' || 'plain' }}
path: ${{ env.APK_PATHS }}
retention-days: 1
android:
name: Test Android API ${{ matrix.api-level }}${{ matrix.coverage && format(' coverage ({0})', matrix.batch) || '' }}
needs: android-build
runs-on: ubuntu-latest
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
# Coverage runs every test in its own app process for the map that selects e2e tests on
# pull requests. That is too slow for one runner, so its tests are split across batches.
# coverage_map's batch_count must match.
# Coverage is only collected against the main mock server.
include: |-
${{ fromJson(
(inputs.mock_server_branch || 'main') != 'main' && '[
{ "api-level": 36, "batch": 0, "batch_count": 1 }
]'
|| '[
{ "api-level": 36, "coverage": true, "batch": 0, "batch_count": 4 },
{ "api-level": 36, "coverage": true, "batch": 1, "batch_count": 4 },
{ "api-level": 36, "coverage": true, "batch": 2, "batch_count": 4 },
{ "api-level": 36, "coverage": true, "batch": 3, "batch_count": 4 },
{ "api-level": 34, "batch": 0, "batch_count": 1 },
{ "api-level": 31, "batch": 0, "batch_count": 1 },
{ "api-level": 28, "batch": 0, "batch_count": 1 }
]'
) }}
env:
# swangle_indirect, not swiftshader_indirect: with the latter the emulator exits silently mid-run
# (RN-513).
ANDROID_EMULATOR_OPTIONS: -no-snapshot-save -no-window -no-audio -no-boot-anim -gpu swangle_indirect -camera-back none -camera-front none
DETOX_ADB_NAME: "emulator-5554"
MOCK_SERVER_BUNDLE_PATH: ${{ github.workspace }}/../mock-server-gems
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: "yarn"
cache-dependency-path: "yarn.lock"
- uses: actions/setup-java@v5
with:
distribution: "zulu"
java-version: "21"
- uses: ./.github/actions/ruby-cache
- name: Restore node_modules
uses: actions/cache/restore@v5
with:
path: ${{ env.NODE_MODULES_PATHS }}
key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn workspaces focus e2etestapp
- uses: actions/download-artifact@v7
with:
name: e2e-android-apks-${{ matrix.coverage && 'coverage' || 'plain' }}
path: examples/E2ETestApp/android/app/build/outputs/apk
# --- Emulator: same setup as the native Android SDK's e2e jobs (AOSP image, no Play services) ---
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Resolve mock server revision
id: mock-server
run: echo "sha=$(git ls-remote https://github.com/GetStream/stream-chat-test-mock-server "refs/heads/$MOCK_SERVER_BRANCH" | cut -f1)" >> "$GITHUB_OUTPUT"
- name: Cache mock server gems
uses: actions/cache@v5
with:
path: ${{ env.MOCK_SERVER_BUNDLE_PATH }}
key: ${{ runner.os }}-mock-server-gems-${{ steps.mock-server.outputs.sha }}
restore-keys: |
${{ runner.os }}-mock-server-gems-
- name: Launch Allure TestOps
if: env.ALLURE_TOKEN != ''
working-directory: examples/SampleApp
run: bundle exec fastlane allure_launch cron:true
continue-on-error: true
# The emulator runner downloads these without retrying; a corrupted download fails the job.
- uses: ./.github/actions/android-sdk-packages
with:
api-level: ${{ matrix.api-level }}
target: default
- name: Run e2e tests (Android emulator)
id: tests
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
profile: pixel
emulator-options: ${{ env.ANDROID_EMULATOR_OPTIONS }}
disable-animations: true
working-directory: examples/SampleApp
# Logcat is written on the runner, so it survives the emulator dying mid-run (RN-513).
script: |
nohup "$ANDROID_HOME/platform-tools/adb" -s emulator-5554 logcat -b all -v threadtime > "$RUNNER_TEMP/logcat.txt" 2>&1 < /dev/null &
bundle exec fastlane test_e2e platform:android device:att skip_build:true mock_server_branch:"$MOCK_SERVER_BRANCH" coverage:${{ matrix.coverage == true }} batch:${{ matrix.batch }} batch_count:${{ matrix.batch_count }}
# Also when tests failed: those keep their coverage from the previous map. Not when they never
# ran: a batch without its failed-tests file keeps the whole previous map.
- name: List the failed tests
id: failed-tests
if: ${{ !cancelled() && matrix.coverage && (steps.tests.outcome == 'success' || steps.tests.outcome == 'failure') }}
working-directory: examples/SampleApp
run: bundle exec fastlane e2e_failed_tests batch:${{ matrix.batch }}
# A tarball, as upload-artifact rejects some characters a test name (the folder name) may hold.
- name: Pack the coverage
if: ${{ !cancelled() && steps.failed-tests.outcome == 'success' }}
working-directory: examples/E2ETestApp
run: tar -czf e2e-coverage-batch-${{ matrix.batch }}.tgz e2e-coverage
- uses: actions/upload-artifact@v6
if: ${{ !cancelled() && steps.failed-tests.outcome == 'success' }}
with:
name: e2e-coverage-batch-${{ matrix.batch }}
path: examples/E2ETestApp/e2e-coverage-batch-${{ matrix.batch }}.tgz
retention-days: 3
- name: Upload Allure results
if: env.LAUNCH_ID != '' && (success() || failure())
working-directory: examples/SampleApp
run: bundle exec fastlane allure_upload launch_id:"$LAUNCH_ID"
- name: Allure TestOps Launch Removal
if: env.LAUNCH_ID != '' && cancelled()
working-directory: examples/SampleApp
run: bundle exec fastlane allure_launch_removal launch_id:"$LAUNCH_ID"
# The emulator has vanished mid-run without any output; this shows whether the kernel killed it.
- name: Diagnose emulator
if: failure()
run: |
sudo dmesg -T | grep -i -E 'out of memory|oom-kill|killed process' || echo "No OOM kills in dmesg"
free -m
df -h
ls -la /tmp/android-runner 2>/dev/null || true
- uses: actions/upload-artifact@v6
if: failure()
with:
name: e2e-nightly-android-${{ matrix.api-level }}-batch-${{ matrix.batch }}
path: |
examples/E2ETestApp/stream-chat-test-mock-server/logs
examples/E2ETestApp/artifacts
/tmp/android-runner
${{ runner.temp }}/logcat.txt
coverage_map:
name: Build e2e coverage map
needs: android
# Failed tests keep their previous coverage; only a batch that never finished blocks the map.
if: ${{ !cancelled() && (github.event_name == 'schedule' || inputs.android) && (inputs.mock_server_branch || 'main') == 'main' }}
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ruby-cache
- uses: actions/download-artifact@v7
with:
pattern: e2e-coverage-batch-*
path: examples/E2ETestApp/batches
merge-multiple: true
- name: Merge the batches
working-directory: examples/E2ETestApp
run: |
shopt -s nullglob
for batch in batches/*.tgz; do tar -xzf "$batch"; done
- name: Build the coverage map
working-directory: examples/SampleApp
run: bundle exec fastlane build_e2e_coverage_map batch_count:4
- uses: actions/upload-artifact@v6
with:
name: e2e-coverage-map
path: examples/E2ETestApp/e2e_coverage_map.json
retention-days: 14
slack:
name: Slack Report
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [ios, android-build, android, coverage_map]
# always(): a job that hit its timeout is `cancelled`, which failure() alone doesn't see.
if: always() && github.event_name == 'schedule' && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled'))
steps:
- uses: 8398a7/action-slack@v3
with:
status: cancelled
text: 'You shall not pass!'
job_name: '${{ github.workflow }}: ${{ github.job }}'
fields: repo,commit,author,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_NIGHTLY_CHECKS }}