Documentation

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.

View GitHub Repository

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

- name: Run QA Tests
  uses: verex-ai/github-test-runner@v1
  with:
    api_key: ${{ secrets.VEREX_API_KEY }}
    test_suite: 'suite_abc123456'

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

- name: Run QA Tests
  uses: verex-ai/github-test-runner@v1
  with:
    api_key: ${{ secrets.VEREX_API_KEY }}
    test_suite: 'testsuite_123456'
    debug: 'true'
  id: test_results
 
- name: Report Test Results
  if: always()
  run: |
    echo "Passed: ${{ steps.test_results.outputs.passed_tests }}"
    echo "Failed: ${{ steps.test_results.outputs.failed_tests }}"

Dynamic Base URL

To run tests against a dynamic environment (e.g. your current deploy preview), you can pass a custom base URL:

test_base_url: ${{ steps.deploy.outputs.deployment_url }}

This value replaces any {{base_url}} placeholder used in your Verex test suite.

Inputs

NameDescriptionRequiredDefault
api_keyAPI key for authenticationYes
test_suiteTest suite ID to executeYes
test_base_urlBase URL for the tests (e.g. https://staging.yourdomain.com)No
api_base_urlBase URL for the APINohttps://verex.ai/api
max_poll_attemptsMaximum number of polling attemptsNo60
poll_interval_secondsSeconds to wait between polling attemptsNo10
timeout_minutesOverall timeout for the test runNo30
debugEnable debug modeNofalse

Outputs

NameDescription
test_suite_run_idID of the test suite run
test_suite_run_statusStatus of the test suite run
test_suite_linkLink to the test suite
test_suite_run_linkLink to the test suite run
total_testsTotal number of tests executed
passed_testsNumber of tests that passed
failed_testsNumber of tests that failed
test_durationTotal 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

On this page