-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (76 loc) · 2.93 KB
/
e2e-full.yml
File metadata and controls
84 lines (76 loc) · 2.93 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
name: Full E2E Tests
on:
workflow_dispatch:
inputs:
run_android:
description: 'Run Android tests'
type: boolean
default: true
run_ios:
description: 'Run iOS tests'
type: boolean
default: true
run_react_native:
description: 'Run React Native tests'
type: boolean
default: true
schedule:
# Run weekly on Monday at 00:00 UTC
- cron: '0 0 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Android example E2E tests (min/max devices)
android-e2e:
if: ${{ github.event_name == 'schedule' || inputs.run_android }}
uses: ./.github/workflows/e2e-android.yml
with:
devices: '["min","max"]'
timeout-minutes: 45
boot-timeout: 240
test-timeout: 600
free-disk-space: false
run-apk-detection-tests: false
artifact-prefix: android
# iOS example E2E tests (min/max devices)
ios-e2e:
if: ${{ github.event_name == 'schedule' || inputs.run_ios }}
uses: ./.github/workflows/e2e-ios.yml
with:
matrix-include: '[{"device":"min","os":"macos-15"},{"device":"max","os":"macos-26"}]'
timeout-minutes: 45
boot-timeout: 180
test-timeout: 600
artifact-prefix: ios
# React Native E2E tests (Android min/max, iOS min/max, Web)
react-native-e2e:
if: ${{ github.event_name == 'schedule' || inputs.run_react_native }}
uses: ./.github/workflows/e2e-react-native.yml
with:
matrix-include: '[{"platform":"android","device":"min","os":"ubuntu-24.04"},{"platform":"android","device":"max","os":"ubuntu-24.04"},{"platform":"ios","device":"min","os":"macos-15"},{"platform":"ios","device":"max","os":"macos-26"},{"platform":"web","device":"none","os":"ubuntu-24.04"}]'
timeout-minutes: 60
artifact-prefix: react-native
# Summary status check
e2e-summary:
name: E2E Test Summary
runs-on: ubuntu-latest
needs: [android-e2e, ios-e2e, react-native-e2e]
if: always()
steps:
- name: Check results
run: |
echo "E2E Test Results:"
echo " Android E2E: ${{ needs.android-e2e.result }}"
echo " iOS E2E: ${{ needs.ios-e2e.result }}"
echo " React Native E2E: ${{ needs.react-native-e2e.result }}"
echo ""
if [[ "${{ needs.android-e2e.result }}" != "success" && "${{ needs.android-e2e.result }}" != "skipped" ]] || \
[[ "${{ needs.ios-e2e.result }}" != "success" && "${{ needs.ios-e2e.result }}" != "skipped" ]] || \
[[ "${{ needs.react-native-e2e.result }}" != "success" && "${{ needs.react-native-e2e.result }}" != "skipped" ]]; then
echo "::error::One or more E2E test suites failed"
echo "::error::Check the individual job logs for details"
echo "::error::Logs available in artifacts"
exit 1
fi
echo "::notice::All E2E tests passed successfully!"