Please which effective way of doing a Pull Request validation with azure devops pipelines there is?. Here’s my case, I have a nextjs frontend and drupal backend that are going to be hosted using containerisation(production). But before any feature branch is merged into any of main, staging, dev branches I would like to do a Pull Request validation. So here’s my idea:
Define a yaml pipeline to run build, test and run security scans/checks on a PR before any merging takes place. So it is going to have maybe stages or jobs for:
- Build
- Test
- Scan
One of the things I’m confused about is the building and testing, should I build it(the feature branch) into docker image and run it in maybe, something like azure app service, or I should just build and run it like that, not using docker method(especially for the nextjs). Point of this is to test whether the code works first, ensure nothing is broken before it is merged.
And please if there is any other alternative method or test or the entire workflow, please do tell. Thank you