Skip to main content
Integrating MobileBoost into your CI pipeline enables automated test execution against your latest app builds.

GitHub Action

The MobileBoost Test Action uploads your build and sends the PR body (which should contain test instructions) to MobileBoost in a single step.
name: MobileBoost tests

on:
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Build project
        run: |
          # Build your project and generate the build file

      - name: Trigger MobileBoost tests
        uses: MobileBoostHQ/mobile-test-action@v1
        with:
          organisation-id: ${{ secrets.MOBILEBOOST_ORG_ID }}
          app-path: path/to/your/build.apk
          platform: android
The action automatically extracts test instructions from your PR body and sends them along with the build artifact. For guidance on formatting test instructions, see the format requirements section in the Natural language test definitions page.

Inputs

InputRequiredDescription
organisation-idYesYour MobileBoost organisation ID
app-pathYesPath to the .apk or .ipa build file
platformYesApp platform: Android or iOS

Required secrets

Add MOBILEBOOST_ORG_ID to your repository under Settings > Secrets and variables > Actions.

CI provider snippets

For other CI systems, use the upload API to send your build artifact and capture the returned buildId.
In all examples below, replace <ORG_KEY> with your MobileBoost organisation key, <platform> with ios or android, and the build file path with the actual path to your artifact.
Add a Script step to your workflow after the build step. This uploads the build and makes the buildId available as an environment variable for subsequent steps.
call=$(curl -i -X POST \
        -H "Content-Type: multipart/form-data" \
        -F "build=@$BITRISE_BUILD_PATH" \
        -F "organisation_key=<ORG_KEY>" \
        -F "platform=<platform>" \
        -F "metadata={}" \
        https://api.mobileboost.io/uploadBuild/)

buildId=$(echo "$call" | awk '/^{/ {print}' | jq -r '.buildId')

envman add --key MOBILEBOOST_BUILD_ID --value $buildId

API

For full control, use the API directly. The process has two steps: upload the build, then trigger tests.

Step 1: Upload the build

Upload your build artifact using the upload endpoint. The response returns a buildId.
curl -X POST \
  -H "Content-Type: multipart/form-data" \
  -F "build=@path/to/your/build.apk" \
  -F "organisation_key=YOUR_ORG_KEY" \
  -F "platform=android" \
  -F "metadata={}" \
  https://api.mobileboost.io/uploadBuild/

Step 2: Trigger tests

Use the buildId from step 1 to trigger test executions via POST /tests/execute. Run specific tests by ID:
{
  "organisationId": "org123",
  "uploadId": "BUILD_ID_FROM_STEP_1",
  "testIds": ["test_abc", "test_def"]
}
Run tests by tags:
  • Use tags for OR logic: runs tests with at least one matching tag
  • Use tagsQuery for AND logic: e.g., "AND(critical, android)" runs tests that have all specified tags
{
  "organisationId": "org123",
  "platform": "android",
  "tagsQuery": "AND(critical, android)"
}
Provide test input values:
{
  "organisationId": "org123",
  "platform": "android",
  "tags": ["critical"],
  "testInputs": {
    "test_abc": {
      "email": "test@example.com"
    }
  }
}

Build requirements

Before tests can run, your application build must be uploaded to MobileBoost.

Simulators

PlatformFormatHow to generate
Android.apkBuild in Android Studio (Build > Build APK(s)) or via Gradle: ./gradlew assembleDebug
iOS.zip or .tar.gz containing the .app bundleBuild in Xcode targeting an iOS Simulator, then compress the .app folder
iOS simulator builds: Build your app in Xcode targeting an iOS Simulator. Locate the .app file at Product > Show Build Folder in Finder > Products/Debug-iphonesimulator. Then compress it:
zip -r MyApp.zip MyApp.app
Or build from the command line:
xcodebuild -workspace MyApp.xcworkspace -scheme MyApp -sdk iphonesimulator -configuration Debug

Physical devices

PlatformFormatNotes
Android.apkSame as simulator builds
iOS.ipaMobileBoost automatically re-signs the .ipa for the test device grid. No special certificates or provisioning profiles required on your end