Skip to main content
Run Revyl tests automatically on every pull request. This guide covers GitHub Actions, the Revyl CLI in CI, and integrating test results into your workflow.

Prerequisites

  • Revyl account with an API key
  • App and tests already created (see Your First Test)

Step 1: Store your API key

Add REVYL_API_KEY as a repository secret in GitHub: Settings → Secrets and variables → Actions → New repository secret Name: REVYL_API_KEY Value: your API key from Account → API Keys

Step 2: Add a workflow file

Option A: Run tests against the latest build

The simplest setup. Runs your test workflow on every PR using the most recently uploaded build.
The installer downloads the native CLI binary. The CLI exits with code 0 on pass, 1 on failure.

Option B: Build, upload, and test

Build your app fresh, upload the artifact, and run the full suite against it:
revyl run <workflow> -w builds your app, uploads the artifact, and runs all tests. Use --no-build to skip the build step.

Option C: Use the Revyl CLI in GitHub Actions

Build-to-test pipeline (GitHub Actions)

Upload a build and test it in the same workflow:

Step 3: Sync tests from CI

Keep remote tests in sync with your repo after merge to main:

CLI in CI (without GitHub Action)

Install and run the CLI directly in any CI:

Build upload from CI

Useful CI Patterns

Retries

Async execution

JSON output for downstream processing

Version-tagged builds

GitLab CI

CI-Friendly Flags

Exit Codes

Environment Variables