yaml

There is option to see full generated Yaml in Gitlab's pipeline editor,

merging / inheritance

Optimize your YAML files

Jobs “inheritance”:

How to merge rules on a GitLab CI Job