Using Git and choosing the right workflow is essential when you want to implement DevOps practices as part of your SW development. When it comes to embedded SW things start to get a bit rough. Take a look at the blog post below to learn how to use Git-Flow for embedded development and what kind of tests to apply for each commit, merge, etc. Note that it's based on what we are doing at Jumper when we are building our virtual lab, so you might need to tweak it a bit.
Hope you'll find it beneficial.
P.S. We are about to launch a virtual nRF52 device that will support unit, integration, device and system tests. If automated testing is top of mind for you sign up for our Beta.