Validate possible target branches for .gitlab-ci.yml
Right now it's very easy to break GitLab's .gitlab-ci.yml
(e.g. #34580 (closed)) because we don't test against possible branch names, especially with the needs
and except
keywords.
It'd be nice to have a CI step that does a check that the YAML is valid for various branch names. For example:
12-4-stable
12-4-stable-ee
12-4-auto-deploy-1234
- etc.
Maybe the easiest thing right now is to run a bin/rails runner
script that does this?