Check if no-test branch before isGoOnly
Created by: pecigonzalo
The changes from #12321 make is so we only run Go checks if required, but we need to maintain the workflow of building docker images in no-test branches.
Im not sure if that steps needs addGoBuild
as well, but since in #12321 it was not there, I assume it can build without it.
/cc @keegancsmith