Skip to content

CI and Sypnia Run

A push builds a preview, a merge can deploy, and any CI can report its checks.

Applies to EngineCloud
View as Markdown
On this page
  1. With Sypnia Run
  2. With any other CI
  3. The contract check

With Sypnia Run

Link a repository to a Run project once (in sypnia.toml or in the repository’s settings). Then:

WhenRun doesYou see
a branch with a pull request is pushedbuilds a previewa check sypnia-run/preview with the preview’s address
a pull request is merged into maindeploysthe 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:

Terminal
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.

  1. With Sypnia Run
  2. With any other CI
  3. The contract check

    Search pages, sections and terms