Github Actions
This guide will help you integrate Scandium into your GitHub CI/CD pipeline using GitHub Actions. With just a few steps, you’ll be able to run automated tests from your Scandium test suite every time
Last updated
This guide will help you integrate Scandium into your GitHub CI/CD pipeline using GitHub Actions. With just a few steps, you’ll be able to run automated tests from your Scandium test suite every time
Last updated
By the end of this guide, your GitHub workflow will:
Automatically run tests from a Scandium suite on every push to a chosen branch.
Optionally allow manual runs from the GitHub Actions UI.
Show test results directly in your GitHub Actions logs.
Before you begin, make sure you have:
A account with:
Your API_TOKEN
A PROJECT_ID
and SUITE_ID
Access to a GitHub repository
A basic understanding of how GitHub Actions works
Navigate to your repository on GitHub.
Go to Settings > Secrets and variables > Actions > Repository secrets.
Add the following secrets:
Secret Name
Description
API_TOKEN
Your Scandium API token
PROJECT_ID
Your Scandium project ID
SUITE_ID
Your Scandium test suite ID
HUB_URL
(Optional) Selenium Grid URL, if running on your infrastructure
STARTING_URL
(Optional) The URL your tests should start from. This will override all tests within the suite you are executing.
In your repo, create a file at:
.github/workflows/run-scandium.yml
Paste the following:
Any time you push to the configured branch (e.g., bashci
), the workflow will run automatically.
Go to your repo on GitHub:
Click the Actions tab.
Select Run Scandium Script
.
Click Run workflow.
Problem
Solution
❌ Missing required variable
Double-check that API_TOKEN
, PROJECT_ID
, and SUITE_ID
are set correctly as secrets
❌ Script not found or not executable
Ensure the SCRIPT_URL
is valid and script has execution permission (chmod +x
)
🕒 Stuck waiting
Adjust WAIT_PERIOD
and MAX_ATTEMPTS
in the environment variables