chdsbd / kodiak

🔮 A bot to automatically update and merge GitHub PRs
https://kodiakhq.com
GNU Affero General Public License v3.0
1.03k stars 65 forks source link

Trigger build only before merging #804

Open jonathan-boudreau-work opened 2 years ago

jonathan-boudreau-work commented 2 years ago

We have expensive build steps which we don't want to run on every commit. At the same time we want to run these build steps before merging, since they are likely to catch bugs we don't want in trunk.

With bors-ng, it is possible to do this by defining a build which only runs on the trying or staging branches. How would I do this with kodiak?

chdsbd commented 2 years ago

I think this is less of a Kodiak question and more of a continuous integration (CI) question.

I think with GitHub Actions or CircleCI you can configure CI jobs to run on certain branches. Would that work for you?

jonathan-boudreau-work commented 2 years ago

Yes that is correct,does kodiak support this?

chdsbd commented 2 years ago

Yes, assuming you configure your CI provider to run CI jobs on certain branches, Kodiak will support that