Expo Workflows
Build an Expo app with Expo Build and run iOS and Android tests on it in an Expo workflow.
In an Expo workflow, a build job makes the simulator .app or the .apk.
A custom job then downloads the build, boots a device, and runs the suite.
The jobs follow the rules in Mobile jobs.
This page is about Expo Workflows, the CI service. To run tests on hosted simulators and emulators from Expo, see Expo Simulators.
Build profile
Add a build profile that needs no credentials:
{
"build": {
"e2e": {
"withoutCredentials": true,
"ios": { "simulator": true },
"android": { "buildType": "apk" }
}
}
}Workflow
The Android job needs a nested-virtualization Linux runner, the only Expo
machine that can run the emulator. Use custom jobs, as below. The built-in
maestro job type runs Maestro flows, not e2e.
name: e2e
on:
pull_request:
branches: ['*']
push:
branches: [main]
defaults:
tools:
node: '24'
jobs:
build_ios:
type: build
params:
platform: ios
profile: e2e
build_android:
type: build
params:
platform: android
profile: e2e
e2e_ios:
needs: [build_ios]
runs_on: macos-medium
environment: preview
env:
CI: '1'
steps:
- uses: eas/checkout
- uses: eas/install_node_modules
- uses: eas/download_build
id: download_build
with:
build_id: ${{ needs.build_ios.outputs.build_id }}
extensions: [app]
- name: Boot a simulator and install the app
run: |
UDID=$(xcrun simctl create e2e "iPhone 17" com.apple.CoreSimulator.SimRuntime.iOS-26-5)
xcrun simctl bootstatus "$UDID" -b
xcrun simctl install "$UDID" "${{ steps.download_build.outputs.artifact_path }}"
- name: Run e2e
run: npx e2e run --target ios --reporter list,junit
- uses: eas/upload_artifact
if: ${{ always() }}
with:
type: other
name: e2e-ios
path: .e2e
e2e_android:
needs: [build_android]
runs_on: linux-medium-nested-virtualization
environment: preview
env:
CI: '1'
steps:
- uses: eas/checkout
- uses: eas/install_node_modules
- uses: eas/download_build
id: download_build
with:
build_id: ${{ needs.build_android.outputs.build_id }}
extensions: [apk]
- uses: eas/start_android_emulator
with:
system_image_package: system-images;android-35;google_apis;x86_64
- name: Install the app
run: adb install -r "${{ steps.download_build.outputs.artifact_path }}"
- name: Run e2e
run: npx e2e run --target android --reporter list,junit
- uses: eas/upload_artifact
if: ${{ always() }}
with:
type: other
name: e2e-android
path: .e2eCI: '1' turns on the CI defaults on a runner that
doesn’t set CI. eas/start_android_emulator is an Expo Build function,
documented under custom builds,
not on the Workflows syntax page. It downloads the system image you name
with sdkmanager.
Model key
Keep the model key, such as AI_GATEWAY_API_KEY, in an
Expo environment variable
with secret visibility. Set environment: on each job, because a custom job
reads production by default.
Each job that reads the environment can read the key, including one that runs an untrusted pull request. See Model credentials.
Build less often
A fingerprint job with get-build and repack reuses the last native
build and bundles only the JavaScript. The
agent-device Expo Workflows template
does this for both platforms.
