Overview
Connecting Spur to your CI/CD pipeline adds an automated quality gate right before deployment. When a pull request is opened or code is pushed, Spur triggers your test plans and reports results directly in your repository. Failing tests block a merge before anything reaches production. Spur supports both GitHub and GitLab CI/CD integrations.What You Get
Automated Test Execution
Test plans run automatically on every pull request without manual intervention.
PR/MR Status Checks
Pass/fail results appear directly on pull requests (GitHub) or merge requests (GitLab).
Deployment Quality Gate
Tests run right before deployment, catching issues before they reach production.
Branch Protection
Prevent merging pull requests with failing tests using GitHub branch protection rules.
Setting Up GitHub CI/CD
Go to Integrations
Open the Integrations page in your Spur dashboard and connect GitHub.
Open Spur Integrations
Connect Spur with GitHub to get started
Configure Your Integration
The GitHub Integration Settings page has four sections. Review each one before proceeding.
API Key
Your unique Spur API key is displayed here. This is what authenticates your GitHub repository with Spur. Copy it if you need to reference it manually.
Directory Path
The path where your GitHub Actions workflow files will be stored. The default is
.github/workflows — leave this as is unless your repository uses a custom structure.Enabled Test Plans
Select which test plans should run as part of your CI/CD pipeline. Click + Add Test Plan to include additional ones.
YAML Files
Two workflow files are generated for you here. You will download and add these to your repository in the next step.
Other Integrations: You can also allow other integrations to be enabled for GitHub jobs.


Add the YAML Files to Your Repository
Download both YAML files from the settings page and add them to your repository under 
.github/workflows/.
Setting Up GitLab CI/CD
Spur also supports GitLab CI/CD. The setup process follows the same pattern as GitHub. Connect GitLab from the Integrations page, configure your test plans, and add the generated pipeline files to your repository.For GitLab-specific setup instructions, reach out to the Spur team for guidance on configuring your
.gitlab-ci.yml file.
