Skip to content

Commit cb47eae

Browse files
committed
chore(e2e): add GitHub Actions option to run Expo example app E2E tests
1 parent 694a401 commit cb47eae

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/e2e-manual.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
- both
1818
- ios
1919
- android
20+
expo:
21+
description: Run E2E with Expo framework
22+
required: true
23+
default: false
24+
type: boolean
2025

2126
jobs:
2227
e2e-ios:
@@ -77,10 +82,11 @@ jobs:
7782
7883
- name: Run iOS E2E
7984
run: |
80-
npm run e2e -- \
81-
--app "${{ inputs.app }}" \
82-
--platform ios \
83-
--simulator "${{ steps.boot-simulator.outputs.simulator }}"
85+
if [ "${{ inputs.expo }}" = "true" ]; then
86+
npm run e2e -- --app "${{ inputs.app }}" --platform ios --simulator "${{ steps.boot-simulator.outputs.simulator }}" --framework expo
87+
else
88+
npm run e2e -- --app "${{ inputs.app }}" --platform ios --simulator "${{ steps.boot-simulator.outputs.simulator }}"
89+
fi
8490
8591
e2e-android:
8692
if: ${{ inputs.platform == 'android' || inputs.platform == 'both' }}
@@ -131,4 +137,9 @@ jobs:
131137
arch: x86_64
132138
profile: pixel_7
133139
emulator-boot-timeout: 900
134-
script: npm run e2e -- --app "${{ inputs.app }}" --platform android
140+
script: |
141+
if [ "${{ inputs.expo }}" = "true" ]; then
142+
npm run e2e -- --app "${{ inputs.app }}" --platform android --framework expo
143+
else
144+
npm run e2e -- --app "${{ inputs.app }}" --platform android
145+
fi

0 commit comments

Comments
 (0)