CI and Sypnia Run
A push builds a preview, a merge can deploy, and any CI can report its checks.
With Sypnia Run
Link a repository to a Run project once (in sypnia.toml or in the repository’s settings). Then:
| When | Run does | You see |
|---|---|---|
| a branch with a pull request is pushed | builds a preview | a check sypnia-run/preview with the preview’s address |
a pull request is merged into main | deploys | the deploy in the pull request; production follows Run’s approval rules |
With any other CI
Subscribe it to push and pull_request webhooks and report back with the status API:
curl -X POST https://git.api.sypnia.com/v1/repos/laespiga/web/statuses/$SHA \
-H "Authorization: Bearer $SYPNIA_GIT_TOKEN" \
-d '{"state":"success","context":"ci/tests","target_url":"https://ci.example.com/run/42"}'The contract check
With the repository linked to a map in Sypnia Cases, Cases runs cases check on every push to a pull request and posts the check sypnia-cases/check, with its findings as notes on the lines: code that does what no case says, a case that is not built, code that disagrees with its case. Make it required on main, and nothing off the map is merged, by people or by agents.
Any check can be made required in the branch rules.