As mentioned by @Fred_G it mostly depends on the firearm.
I’ve been dry firing PPQ, CZ-P-01, M&Ps - they run DRY without any harm.
I’m not sure about 1911 style, I’ve been told they like oil… so I lube them and never run dry.
To be honest I do not think much about it anymore, using small trick during cleaning process. I use “Hornady One-Shot Cleaner”. It evaporates fast, leaving a light protective film with some lubrication. Non sticky and oily at all. Perfect for dry fire practice. Once I’m done with practice, I put some extra lube on the barrel.