My current workflow is to push to my master branch on GitHub, which then triggers a Github Action that runs my unit tests, stress tests etc.
I now want to make sure that no commits land on master that fail the tests. For that, I want to:
- introduce a
testingbranch for pushing instead, which then runs the GitHub action and finally automatically merges tomasterwhen passing. - protect the
masterbranch in a way that I cannot accidentally push to it directly.
How can I achieve this?
Additional info:
- I prefer not to use Pull Requests for this, as I'm currently the only developer in this project.