Currently, we use a simple branching strategy, with a single main branch and one layer of feature branches; no branches on branches on branches. We also have many pipelines that run against each PR to check the code before it is merged to the main branch, including but not limited to,
- code quality
- linting
- security assurance
In a trunk-based approach, how does one run these tests before code is merged, without a PR?
I have seen Trunk Based Development - release branch testing but it did not fully answer my question. Thanks in advance for your patience with a n00b question :D
mainon the remote, and you call your local branchmain, then it's TBD. If you rename your local branch tomy-branchthen TBD magically changes into "Feature Branch Workflow", which is also known as GitHub Flow and many other popular CI workflows. PR's are fine, just temporarily rename (or copy) your localmainto something else and push it out so you can use the PR tool functionality, if you want to. – TTT Sep 07 '22 at 20:11