Make sure that validate and test stage is only run once
This will ensure that the validate and test stages are only run when the
merge request is initially created. When merged into `production`, those
steps will be skipped. This will make the pipeline faster and less
redundant.