mdubourg001 / glci

🦊 Test your Gitlab CI Pipelines changes locally using Docker.
568 stars 17 forks source link

`extends:` is not treated as array #27

Closed justfortherec closed 3 years ago

justfortherec commented 3 years ago

Thank you for quickly adding the requested extends functionality. Unfortunately, it only works for a single template while extends: is an array.

To reproduce, try this .gitlab-ci.yml file:

.first-example-template:
    image:
        name: alpine

.second-example-template:
    only:
        refs:
            - master

example-job:
    extends:
        - .first-example-template
        - .second-example-template
    script:
        echo "Hello World"

It seems as if glci joins the names of the extended jobs instead of iterating over them:

> glci
Can't extend job '.first-example-template,.second-example-template': job doesn't exist.
mdubourg001 commented 3 years ago

Should be fixed in https://github.com/mdubourg001/glci/releases/tag/v0.3.0. Thanks for reporting this 👌