Skip to content

Better control when to run tests with Heroku CI #352

Description

@MarinBozinovic

Required Terms

What service(s) is this request for?

Heroku CI

Tell us about what you're trying to solve. What challenges are you facing?

Suggestion

Current behaviour described on Heroku devcenter:

After you enable Heroku CI for a pipeline, it runs tests automatically for every subsequent push to your GitHub repository. This means that all GitHub pull requests are automatically tested, along with any merges to master.

This is, in some cases, excellent and desired behaviour. But it is not the best solution for bigger projects that have multiple work-in-progress branches. Running tests on every push to the repository means that tests run when we publish a branch or push a commit to the work-in-progress branch.

Heroku CI would be a great solution for running tests if it worked similarly to Heroku Review Apps, not on every push to the repository, but on every push to the branch that has a pull request opened.

Example:

Good example: test run for branch fb/heroku_ci, commit: f618363. The said branch has a pull request opened, and there is a link to it.

Image

Bad example: test run for branch heroku_support_example, commit: ff3263b. The said branch doesn't have a pull request opened, and I don't see a reason for tests to run for it.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions