minitap-ai/minitest-trigger GitHub Action and how each one behaves. The Action signs in with GitHub OIDC, uploads your build or asks Mini to build the commit, and starts the run. By default it returns once the run is queued and reports back through a GitHub check on the commit; it can also wait for the verdict and fail the step.
For a walkthrough and setups for other CI, see Run in CI.
Minimal usage
@v2 follows the latest 2.x release.
Prerequisites
- The Minitap GitHub App is installed on the organization. See GitHub.
- The job has the
id-token: writepermission, so the Action can get its OIDC token:
- On
issue_commentevents only, the job also needspull-requests: read(see Preview deployments posted as comments).
Inputs
What to test
Native lanes
A device type never turns a lane on:
phone or tablet with that platform’s run-* set to false fails the step. A run picks one form factor per platform; to test phones and tablets, use two jobs, and each gets its own verdict. Tablets are enabled per workspace: ask the Minitap team if a tablet run is refused. An iPhone-only build can run on an iPad in compatibility mode, and the Action shows a warning when it does.
Web lane
Gating and behavior
Outputs
Build paths and requirements
Without a build path, Mini builds that platform from the triggering commit, using the app’s build settings. With a build path, the Action checks the file and uploads it instead.iOS
A typical
xcodebuild line for the simulator:
Android
An.apk only. If it ships native libraries, they must include x86_64: the Action reads the APK and fails with the architectures it found when only arm64-v8a or armeabi-v7a are there. An APK without native libraries runs as is. To test an .aab, upload it with the CLI instead.
Configure app/build.gradle:
Web runs
run-ios, run-android and the web inputs each pick a lane, and lanes add up: run the web lane alone, one native lane, or any mix.
run-web: trueruns the app’s default web targets, set per app in the dashboard. A repo-linked app runs them against this commit’s build; a URL-only app against its configured URL.web-targetsruns an explicit list instead, and turns the web lane on withoutrun-web.
<browser>:<viewport> maps to a target:
Other combinations, such as
firefox:mobile or safari:desktop, fail the step. Microsoft Edge is enabled per workspace on request; until it is on for yours, a run with an edge target is refused.
Building the commit
For a web app linked to a GitHub repo,run-web: true builds your frontend at the commit the workflow runs on, serves it in the test environment and runs your web scenarios against it, even when the app also has a configured URL. Set web-url only to test a separately deployed URL instead.
Per-run URL with web-url
The common case is a pull request preview. web-url replaces the app’s configured URL for that run:
Preview deployments posted as comments
Some hosts announce each preview deployment in a pull request comment. Trigger the web lane from that comment and the run is attached to the pull request: its check shows in the Checks tab, andcancel-previous-runs replaces the previous preview’s run when the branch matches a release branch pattern.
issue_comment workflows only run from the default branch, so merge the workflow file before expecting it to fire. A preview behind a login page shows that page to Mini instead of your app.
Examples
iOS only
Android only, with your own build
Your own iOS build, Mini builds Android
Scenarios with some tags
Named scenarios
Native tablets
Web app on mobile browsers
Repository linked to several workspaces
Cancelling previous runs
When you push again and again to the same release branch, older runs that are still pending or running pile up. Withcancel-previous-runs: true (the default), Minitap cancels them before starting the new one.
Cancellation is scoped:
- Same source branch only: the pull request’s head branch, or the branch of a
push,workflow_dispatch,scheduleormerge_groupevent. - Release branches only: the branch must match one of the app’s Release branches patterns, set in Workbench → CI & Maintenance.
- Runs from this Action only: runs started from the dashboard, Slack or the CLI are left alone.
cancel-previous-runs: false.
Blocking a release on the result
By default the Action queues the run and exits, so the rest of the workflow carries on while the suite runs. Setwait-for-result: true and the step waits until the run has a verdict. Add fail-on-failure: true and the step fails on a failing verdict, which skips every job with a needs: on it.
If the timeout comes first,
result is empty and the step fails, or only warns when fail-on-failure is off. Set the job’s timeout-minutes a little above wait-timeout-minutes: if GitHub stops the runner first, you get a runner timeout instead of the verdict.
To see the verdict without blocking, leave fail-on-failure off: a failing run shows as a warning, and later steps can read result and batch-url.
Block merge on failing tests, in Workbench → CI & Maintenance, is a different switch. It turns the check run from neutral to failed, which GitHub branch protection reads.
wait-for-result and fail-on-failure act on the workflow: the step fails and the jobs after it don’t run. Use either one or both.How it works
- Sign in. The Action asks GitHub for an OIDC token for the Minitap API. There’s nothing to manage on your side.
- Check the builds. Build paths you supplied are checked: simulator builds for iOS, x86-64 for Android.
- Upload them. A
.appbundle is packaged into an.ipafirst. - Start the run. Every enabled platform without a build is built from the commit, including the web lane of a repo-linked web app unless
web-urlpoints elsewhere. - Return. The Action exits once the run is queued and the result arrives as a check on the commit. With
wait-for-result: trueit waits for the verdict, setsresult, and can fail the step.
