How to test themes or theme components?

I think goal would be to be able to run them in CI on GitHub as we currently can with specs (both Theme.and Plugin JS)?