I have a working following workflow in AWS:
- I Commit to master on GitHub
- This triggers AWS CodePipeline (CodeBuild) to test the code
- Deploys master to Elastic Beanstalk
Is it possible to modify the workflow with AWS tools so that I:
- Commit to feature branch on GitHub
- Triggers CodePipline to test the code
- If tests pass, merge to master branch on GitHub
- Deploy master branch to Elastic Beanstalk
If this is not possible, what workflow would you recommend? The point is to avoid merging my code to master before automatic tests are triggered.