Setting Up CI
Turn on CI for a project, choose branches, and decide what to test against.
CI is configured per project on the CI / CD page.
Turn it on
- Open CI / CD and pick the project (the dropdown beside Save).
- Tick Run approved tests when a commit is deployed.
- Set Run tests against and add the branches to test.
- Click Save.
A green listening chip means ProoflineQA can receive deployments for the repository. Webhook missing means it can't; see Troubleshooting. To turn CI off, untick and save. For GitLab and Bitbucket this also removes the webhook ProoflineQA added; deleting the project removes it too.
Settings
| Setting | Applies to | What it does |
|---|---|---|
| Run tests against | GitHub, GitLab | The deployed URL or A saved environment. See How CI works. |
| Deploy workflow | GitHub, A saved environment | The Actions workflow whose success means "deployed", for example Deploy. Only this workflow starts a run. |
| Branches | All | Branches to test. Pick from the list or type a pattern such as release/* and click Add. |
| Environment (per branch) | A saved environment; always on Bitbucket | The environment tested when that branch's pipeline succeeds. |
| PR previews | GitHub, GitLab, The deployed URL | Also tests preview deployments of any branch with an open pull request (GitLab: merge request). The result appears on it. |
| Protected deployments (optional) | All | Up to five access headers for previews behind a login wall. See Protected previews. |
| Deployment environment (optional) | GitHub, GitLab, The deployed URL | Test only deployments whose environment name matches, for example Preview – web. Empty tests every deployment of a matching branch. |
Branch patterns: main matches exactly that branch. * is a wildcard: release/* matches release/1.2, and * alone matches every branch. Case is ignored.
Monorepos: import the repository once per app with its own root directory (Importing a repository) and give each project its own Deployment environment filter. A deployment is then tested only by the project it belongs to.
Saving problems
| Message | Fix |
|---|---|
| Pick at least one branch or turn on PR previews | Add a branch rule or enable PR previews. |
Pick the environment to test when main passes its pipeline | With A saved environment, every branch needs an environment. Add one under Settings. |
| Pick the workflow whose success means the app is deployed | GitHub with A saved environment: enter the Deploy workflow. |
| Could not add the webhook to … | The connected account needs Maintainer access (GitLab) or Admin access (Bitbucket) on the repository. |
| GitHub will not send this repository's deployments yet… | The Proofline GitHub App needs updated permissions approved; see Troubleshooting. |