If you have set up checks in GitHub, your workflow build summary will appear in the Checks tab of the pull request in GitHub. For every build on the branch to be merged, Codemagic will report the build summary along with the status and logs of individual build steps to GitHub. Failed checks will block merging the pull request.
Checks can be set up in GitHub when configuring branch protection rules for a repository.
- In Github, open the Settings of your repository.
- In the left menu, click Branches.
- Click Add rule to add a new branch protection rule.
- Enter the name of the branch you want to protect in the Branch name pattern field. For example, if you want to require checks on pull requests to the master branch, enter
- Under Protect matching branches, check Require status checks to pass before merging.
- Select the name of the workflow to add it as a check. Note that the workflow name is listed only if you have already built this workflow in Codemagic.
- Click Save changes.
Note that it’s not currently possible to rerun failed checks (builds) from GitHub UI.