In our pipeline, we build a container and push that to AWS ECR. Recently we expanded our tests in a way that requires them to be run inside the container otherwise they won't work. What I'm trying to figure out is how to set up a pipeline build step that will build and then run a test container and get the results from the test container in such a way that if the test fails the pipeline fails.
If someone has an example they could point me to that would be awesome.