We are building a CI pipeline for a mobile project. We’d like to be able to trigger a test build, plus run E2E & performance tests on each PR to prevent regressions.
The problem is: mobile builds and E2E tests are expensive & slow. It would cost us a lot to run these on every single commit in main, plus every single commit on every PR.
I am trying to find some concept of “This PR is ready, so run the final checks” to help reduce the cost. Is anyone aware of a solution in CircleCI that might work for this?
Some ideas I’ve had…run additional tests if:
- a particular label is present on the PR (AFAIK not supported by default - think we’d have to determine this using the github API)
- The PR is no longer in draft status (again, don’t think this is supported)
- Run the tests just before a PR is merged (not sure how you could achieve this?)
- Run the tests through some other option on the PR that the Engineer could use to signify it’s “ready”?
Any other ideas? Is there anything that would achieve a similar thing supported out of the box?