Skip to main content
EAS can do both halves of a native test run: EAS Build makes the e2e build of the app, and EAS Workflows runs quiesco test against it, on a macOS worker with an iOS simulator and on a Linux worker with an Android emulator. No Mac or emulator of your own is needed. The setup below runs the tutorial app’s tests (examples/todo-tutorial-vitest) on both platforms. It needs the EAS CLI (npm install -g eas-cli), an Expo account (eas login) and the project linked to it (eas init).

The build profile

Add an e2e profile to eas.json:
eas.json
  • EXPO_PUBLIC_QUIESCO=1 is what quiesco build sets locally: the agent stays in the JS bundle and @quiesco/expo-plugin links @quiesco/native and allows the connection to the test host. Without it the build is a production build and Quiesco cannot connect to the app.
  • ios.simulator makes a simulator build (.app), android.buildType: "apk" an APK that can be installed on an emulator. Neither needs signing credentials (withoutCredentials).
  • The profile has no developmentClient: the JS is bundled into the app, so the run needs no Metro.

The config

The local setup launches a dev client that loads its JS from Metro; the EAS build is a standalone app. EAS sets EAS_BUILD on its workers, so quiesco.config.mts can tell the two apart:
quiesco.config.mts
Without devClient Quiesco launches the app directly and starts no Metro. Pick a simulator the worker’s image has (xcrun simctl list devices available in a workflow step lists them).

The workflow

.eas/workflows/e2e.yml
What each part is for:
  • Workers. The iOS simulator needs a macos-* worker, the Android emulator a linux-*-nested-virtualization one (the others have no KVM).
  • Node.js 24. Quiesco needs Node.js 24 or later; the workers’ default is older. nvm install 24 switches inside the step that runs Quiesco: each run is a shell of its own, so the switch does not carry over to the next step. eas/install_node_modules can stay on the default Node.
  • The build. eas/download_build unpacks the iOS simulator build (EAS stores it as a .tar.gz), so artifact_path is the .app on iOS and the .apk on Android. The step copies it to where binaryPath points.
  • The Android emulator. Linux workers have no display, so the workflow starts the emulator itself with -no-window and waits for the boot; Quiesco then uses the running emulator. The worker image has the system images under $ANDROID_HOME/system-images (Android 30 to 37 at the time of writing). avdmanager prints devices.xml errors on these images; they are harmless, which is why its output is discarded.
  • The iOS simulator. Quiesco boots the simulator named in devices.ios itself. The first test of a job takes about a minute and a half longer: the simulator boots, and Quiesco’s system UI runner is built once for the worker’s Xcode.
  • Evidence. A failing test leaves its screenshot, element tree and logs under artifacts/ (artifacts); eas/upload_artifact attaches them to the job on the EAS dashboard. if: ${{ always() }} runs it after a failure too, and ignore_error keeps a run where every test passed (and artifacts/ was never created) from failing on the upload.
Run it from your machine:
The pull_request trigger runs it on every pull request once the Expo project is linked to the GitHub repository (project settings on expo.dev). See Expo’s workflow syntax for other triggers.

Release builds after the tests

The workflow above stops at the tests. To build the release only once they pass, add release build jobs that list the test jobs in needs: EAS starts a job only when every job in its needs succeeded, so a failed test leaves the release builds skipped and spends no build on them. Put them in a workflow of their own that runs where releases come from, e.g. pushes to main, and keep e2e.yml for pull requests. The jobs before the release builds are those of e2e.yml:
.eas/workflows/release.yml
A run whose test fails ends with test_* failed and build_release_* skipped. To send the release to the stores as well, add a submit job with needs: [build_release_ios] (and the Android one); it needs the store credentials set up in EAS (Expo’s pre-packaged jobs). The release build is a build of its own from the same commit, without EXPO_PUBLIC_QUIESCO: the tests ran the e2e build of that code, not the release binary. What differs between the two is the next section.

Production builds

Quiesco is a gray-box tool: the e2e build carries an agent and a native module that a release must not. On EAS the two are separate builds of the same source, and EXPO_PUBLIC_QUIESCO alone decides which is which: EAS bundles the JS and, for a project without committed ios/ / android/ directories, runs expo prebuild in every build with that profile’s env, so both switches follow the profile. A build of the tutorial app without the variable on EAS (simulator .app and release APK) contains none of the agent’s and @quiesco/native’s markers that scripts/check-prod-strip.mjs scans for; the e2e build contains all of them. What can let Quiesco into a release:
  • The variable set somewhere else. Set EXPO_PUBLIC_QUIESCO only in the e2e profile: not in a committed .env file (Expo loads EXPO_PUBLIC_* from it into every build), not as an EAS environment variable of an environment your release builds use, and not in a profile that release profiles extends.
  • Committed native directories. When ios/ or android/ is in the repository, EAS does not run expo prebuild and the config plugin does not run either: whether @quiesco/native is linked is what the committed Podfile and settings.gradle say, for every profile. Keep the native directories generated (CNG), or check what the committed ones link.
  • EAS Update. An update is bundled like a build: publish it without the variable. Give the e2e profile no channel, so an e2e build never downloads a release update (whose stub would cut the connection to Quiesco).

An EAS build on another machine

The e2e build also runs outside EAS, e.g. on your Mac or in another CI:
Copy the file to where apps.ios.binaryPath (or apps.android.binaryPath) points and leave devClient out, as in the config above.