GitHub Actions
Learn how to run Verex AI test suites using GitHub Actions.
Overview
Verex integrates with GitHub Actions to help you automatically run test suites as part of your CI/CD workflows. This GitHub Action makes it easy to trigger tests, wait for completion, and surface results directly in your pipeline.
Features
- Run Verex test suites from any GitHub workflow
- Automatic polling and real-time test monitoring
- Output test result summaries and metadata
- Pass dynamic URLs to target specific environments
- Debug mode for troubleshooting
Quick Start
1. Add to Your GitHub Workflow
2. Set Up Your API Key
- Create your API Key in the Verex Dashboard under Settings > API Keys
- Add it to your GitHub repository secrets as
VEREX_API_KEY
Complete Example
Dynamic Base URL
To run tests against a dynamic environment (e.g. your current deploy preview), you can pass a custom base URL:
This value replaces any {{base_url}}
placeholder used in your Verex test suite.
Inputs
Name | Description | Required | Default |
---|---|---|---|
api_key | API key for authentication | Yes | – |
test_suite | Test suite ID to execute | Yes | – |
test_base_url | Base URL for the tests (e.g. https://staging.yourdomain.com) | No | – |
api_base_url | Base URL for the API | No | https://verex.ai/api |
max_poll_attempts | Maximum number of polling attempts | No | 60 |
poll_interval_seconds | Seconds to wait between polling attempts | No | 10 |
timeout_minutes | Overall timeout for the test run | No | 30 |
debug | Enable debug mode | No | false |
Outputs
Name | Description |
---|---|
test_suite_run_id | ID of the test suite run |
test_suite_run_status | Status of the test suite run |
test_suite_link | Link to the test suite |
test_suite_run_link | Link to the test suite run |
total_tests | Total number of tests executed |
passed_tests | Number of tests that passed |
failed_tests | Number of tests that failed |
test_duration | Total duration of the test run in seconds |
Requirements
- A Verex account
- A valid API Key with permissions to run test suites
Troubleshooting
Enable debug: true
to view detailed logs in case of:
- Invalid API keys
- Test suite not found
- Timeout issues
- Connectivity problems
Resources
Need help? Contact Support