The desired behavior is as follows:
- Push code change
- Run unit tests for each Serverless component
- Provided all tests are successful, deploy the components into Staging environment and mark build as successful
- Listen to this change and run acceptance tests suite using Gherkin
- Provided all tests are successful, deploy the components into UAT/Prod environment and mark build as successful
The desired solution would have two pipelines, the second one triggered by the first one's success.
If you have any other ideas, I'd be delighted to hear!
Thanks in advance