This guide walks through testing a staging environment deployed on your own infrastructure. You’ll use group webhooks with a commitSha to trigger tests after deployment and get results as GitHub commit check runs.
The URL looks like:
See Group Webhooks for more details.
Once your staging deployment completes, call the webhook with the commit SHA. This links test results to the commit on GitHub as a check run.
Add a step after your deployment job:
Add these to your repository secrets (Settings -> Secrets and variables -> Actions):
TESTERARMY_WEBHOOK_URL - the full webhook URL including the secret.TESTERARMY_TARGET_URL - staging environment URL (e.g. https://staging.myapp.com).targetUrl is optional - if omitted, tests run against the URL configured in your project settings. Include environment: "staging" so these runs show under the Staging filter in results. Runs with targetUrl default to PR Preview when environment is omitted.
When tests finish, results appear in two places:
commitSha worksWithout commitSha, TesterArmy runs the tests but has no way to report back to GitHub. Passing it enables the integration:
targetUrl when provided, otherwise the project’s configured URL.commitSha - the webhook still runs tests, but can’t post results to GitHub without it.Tests run against targetUrl if provided in the webhook body, otherwise the URL configured in your project settings. Make sure one of them points to your staging environment.