From my experience this has been mostly painless, and yes, in CI you can obviously run against environments using the same stack as prod.
It may help that I'm writing plain old boring ecommerces or internal tools (scrapers, chatbots, backoffices, warehouse management, delivery systems, etc) and not something more complex and low-level like databases or rendering engines.