Overview
The Stably GitHub Action integrates test execution into your CI/CD pipeline. Run tests on every push, pull request, or on a schedule.Quick Start
Configuration
Inputs
| Input | Required | Description | Default |
|---|---|---|---|
stably-api-key | Yes | Your Stably API key | - |
group | Yes | Test group to run | - |
shards | No | Number of parallel workers | 1 |
timeout | No | Maximum run duration | 30m |
fail-on-test-failure | No | Fail workflow if tests fail | true |
Example with All Options
Common Workflows
Run on Pull Requests
Scheduled Regression Tests
Run Tests Against Staging
Multiple Test Groups
Using the CLI Instead
You can also use the Stably CLI directly in GitHub Actions:Outputs
The action provides outputs you can use in subsequent steps:Available Outputs
| Output | Description |
|---|---|
run-id | Unique identifier for the test run |
passed | Number of passed tests |
failed | Number of failed tests |
skipped | Number of skipped tests |
dashboard-url | Link to results in Stably dashboard |
Secrets Setup
- Go to your repository Settings → Secrets and variables → Actions
- Click “New repository secret”
- Name:
STABLY_API_KEY - Value: Your API key from app.stably.ai/settings