There is option to see full generated Yaml in Gitlab's pipeline editor,
Optimize your YAML files
Jobs “inheritance”:
extends
script:
How to merge rules on a GitLab CI Job