This setup does indeed test every commit in a pr branch. For the “on” property, it only has to be set to “pull_request” to do so. If you also add “commit”, it runs it twice.
It does exactly what you wanted it to. Feel free to email me if you need help setting it up, happy to help. Cheers!