-
-
Notifications
You must be signed in to change notification settings - Fork 393
104 lines (90 loc) · 2.75 KB
/
e2e-metro.yml
File metadata and controls
104 lines (90 loc) · 2.75 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
name: Trigger E2E Tests
on:
workflow_call:
permissions:
actions: read
contents: read
checks: write
pull-requests: write
concurrency:
group: e2e-tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-matrix-android:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
app_name: [example-host]
env:
ANDROID_EMULATOR_API_LEVEL: 28
ANDROID_EMULATOR_TARGET: default
ANDROID_EMULATOR_ARCH: x86_64
ANDROID_EMULATOR_DISK_SPACE: 1024M
ANDROID_EMULATOR_RAM_SIZE: 256M
ANDROID_EMULATOR_HEAP_SIZE: 256M
ANDROID_EMULATOR_BOOT_TIMEOUT: 2700
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js 20
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Determine whether metro apps are affected
id: check-ci
run: |
if node tools/scripts/ci-is-affected.mjs --appName=${{ matrix.app_name }}; then
echo "run-e2e=true" >> "$GITHUB_OUTPUT"
else
echo "run-e2e=false" >> "$GITHUB_OUTPUT"
fi
- name: Android E2E Tests
if: steps.check-ci.outputs.run-e2e == 'true'
uses: ./.github/actions/android-e2e
with:
app_name: ${{ matrix.app_name }}
github_token: ${{ secrets.GITHUB_TOKEN }}
e2e-matrix-ios:
runs-on: macos-latest
timeout-minutes: 60
strategy:
matrix:
app_name: [example-host]
env:
RUBY_VERSION: 2.7.6
MAESTRO_VERSION: 1.39.13
MAESTRO_DRIVER_STARTUP_TIMEOUT: 360000
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js 20
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Determine whether metro apps are affected
id: check-ci
run: |
if node tools/scripts/ci-is-affected.mjs --appName=${{ matrix.app_name }}; then
echo "run-e2e=true" >> "$GITHUB_OUTPUT"
else
echo "run-e2e=false" >> "$GITHUB_OUTPUT"
fi
- name: iOS E2E Tests
if: steps.check-ci.outputs.run-e2e == 'true'
uses: ./.github/actions/ios-e2e
with:
app_name: ${{ matrix.app_name }}
github_token: ${{ secrets.GITHUB_TOKEN }}