Making sure local CI is green before deploying to Heroku

Note: this article assumes you’re using GitHub, something similar can probably also be cooked up for other hosting providers. Rails 8.1 was released recently with a new ‘Local CI’ feature. This allows you to easily define and run the steps you traditionally run on an external system (like GitHub Actions) on your own machine. Modern hardware is fast enough to even run large test suites nowadays.…