Previously this CI job was checking out the head ref, which meant it is not being run on the result of merging into master.
Use the default checkout action ref
(merge into default branch) to avoid this. Increment the checkout depth to HEAD~~ to compensate for the new merge commit.
This would have likely helped avoid both failures reported in #31946, and seems to me to be a more robust way of running this test job in any case.
(Probably) closes: #31946
cc @maflcko: Is there a historical reason I’m missing here why a merge-checkout was not chosen for this job in fafcd2e9ef1209d614de5763a2733098537919dd?