Post VibeView test results as commit statuses on GitHub, so pass or fail shows up in the pull request’s checks.
This page is about test results. To have VibeView build your app on every push and pull request and report each build as a check, see GitHub App.
Quick Start
- Create a GitHub token that can write commit statuses on your repository (see Token requirements).
- In VibeView, go to Settings > Integrations and click Connect GitHub (this needs the Admin role). Enter the token, the repository owner and the repository name.
- Run your tests with
--commit-shaset to the commit you tested. The workflow template does this for you, with the pull request’s head commit.
Status names
| What you run | Status |
|---|---|
| A group | vibeview/<group> (<platform>), one per group |
| Two or more tests in no group | vibeview/<app> (<platform>), one per device |
| One test | vibeview/<test> (<platform>) |
For example vibeview/Checkout (ios) and vibeview/Shop (android). The platform is the one the run was on: ios, android, tvos (Apple TV), androidtv (Android TV), roku, tizen (Samsung TV), webos (LG TV) or vega (Fire TV).
A run of a whole app runs each test once. A test in several groups runs with the first group it was added to, so a group whose tests all run with other groups posts nothing. Which of these statuses a whole app’s run posts changes as you add tests and groups.
When two devices of a run share a platform, the app’s status also names the device: vibeview/Shop, iPhone 16 (ios). When a group has the app’s name, the app’s status is vibeview/Shop tests (ios).
Because each group has its own status, a group that passes can’t hide an earlier group’s failure on the same commit, and the iOS and Android runs of one pull request don’t overwrite each other. Renaming a group or an app changes its status name.
How It Works
When a run has a commit SHA and your organization has connected GitHub, VibeView posts:
- When the run starts: a
pendingstatus: “VibeView: Running ‘Checkout’…” - When it ends: one of
success: “VibeView: ‘Checkout’ passed”failure: “VibeView: ‘Checkout’ failed”error: “VibeView: ‘Checkout’ errored” (also for a cancelled run, or one that stopped for a reason that isn’t your app)
Each status links to that run’s results page in VibeView.
On a run’s page, the commit the run was started with links to that commit on GitHub.
Statuses go to the one repository configured on the integration, and a status appears on a pull request only when it is posted on a commit of that pull request. In GitHub Actions, use ${{ github.event.pull_request.head.sha || github.sha }}: on a pull_request event, github.sha is a merge commit GitHub creates for the run, which isn’t part of the pull request. In other CI systems, use the commit you checked out and built (git rev-parse HEAD on a branch build).
Requiring VibeView before merging
To block merging until the tests pass, add a branch protection rule (or a ruleset) for your main branch with Require status checks to pass, then choose which checks to require:
- Require the workflow’s jobs, VibeView (iOS) and VibeView (Android) in the workflow template. A job fails when any test of its platform fails or can’t run, it covers tests and groups you add later, and it doesn’t depend on names. For a run of a whole app, always require the job, never a status: a required status that isn’t posted blocks every pull request.
- A group’s status, such as
vibeview/Checkout (ios), only when your workflow names that group with--group. GitHub offers a status for selection only after it has been posted recently, and requiring it breaks when you rename the group or stop running it.
Two GitHub behaviors to plan for:
- Skipped jobs count as passing. The template skips pull requests from forks and from Dependabot (they get no secrets), and GitHub treats a skipped required job as successful. Review those pull requests before merging.
- Filtered-out workflows never report. When the template’s
paths-ignorefilter skips a pull request (one that changes only Markdown ordocs/), its required checks stay “Expected” and the pull request can’t merge. If you require the VibeView jobs, remove thepaths-ignorefilter.
Token requirements
Use a fine-grained personal access token limited to the one repository, with the repository permission Commit statuses: Read and write. A classic token with the repo:status scope also works, but it can write statuses on every repository its owner can access.
VibeView encrypts the token at rest. Only one GitHub integration exists per organization: connecting again replaces the token and the repository.
Connecting GitHub with the API
curl -X POST https://vibeview.io/api/v1/integrations/github \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"pat": "github_pat_your_token",
"default_owner": "your-org",
"default_repo": "your-repo"
}'
Testing the connection:
curl -X POST https://vibeview.io/api/v1/integrations/github/test \
-H "Authorization: Bearer YOUR_TOKEN"
This checks that the token can read the configured repository, and returns {"success": true} or an error message.
CI/CD Integration
CLI with Commit SHA
Pass --commit-sha to any run command:
vibeview run-checks --app <app-id> --build "$BUILD_ID" --commit-sha "$(git rev-parse HEAD)"
vibeview run-checks --app <app-id> --group Checkout --commit-sha "$(git rev-parse HEAD)"
vibeview run-test <test-id> --commit-sha "$(git rev-parse HEAD)"
For GitHub Actions, start from the workflow template: it builds your app, runs its tests against that build with the pull request’s head commit, and comments the results on the pull request.
CI API Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/tests/runs | Start a run of an app’s tests, some groups or chosen tests |
GET | /api/v1/tests/batches/:id | Poll that run |
POST | /api/v1/ci/run-test | Start a single test run |
GET | /api/v1/ci/runs/:id | Poll a single test run |
GET | /api/v1/ci/list-suites?app_id= | List an app’s groups |
POST /api/v1/ci/run-suite and /api/v1/ci/run-suites are deprecated and keep working for now.
Start a run of a group:
curl -X POST https://vibeview.io/api/v1/tests/runs \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"target": "group",
"app_id": "a1b2c3d4",
"groups": ["Checkout"],
"commit_sha": "a1b2c3d4e5f6"
}'
Returns the run’s id, its page (run_url) and one entry per device in lanes.
Poll for results:
curl https://vibeview.io/api/v1/tests/batches/<id> \
-H "Authorization: Bearer YOUR_TOKEN"
The response includes the run’s status (pending or running until it ends, then passed, failed, error or cancelled) and each device’s tests. See Get a run.
Managing the Integration
Check connection status:
GET /api/v1/integrations/github
Returns the configured owner, repo, and a masked token prefix for verification.
Disconnect GitHub:
DELETE /api/v1/integrations/github
Removes the token and stops status posting.
Troubleshooting
- No status appears: check that the token can write commit statuses on the repository (use Test connection, or the test endpoint above), and that the owner and repository name exactly match the repository the commit is in.
- The status is on the wrong commit, or missing from the pull request: the commit SHA must be a commit of the pull request. In GitHub Actions, pass
github.event.pull_request.head.sha, notgithub.sha(see How It Works). - A required check stays “Expected”: the status or job never ran for that pull request. See Requiring VibeView before merging.
- Statuses from another repository: statuses are posted only to the repository configured on the integration. A CI run in any other repository still runs, but posts no status there.