stages:
    - test
"PHP CS Fixer":
    stage: test
    image: ekreative/php-cs-fixer:3
    script:
        - php-cs-fixer fix --dry-run --config=.Build/gitlab-ci/extension/php-cs-fixer.php --diff --format=junit > php-report.xml
    tags:
        - docker
    artifacts:
        expire_in: 2 hours
        reports:
            junit:
                - php-report.xml
"PHP Rector":
    stage: test
    image: composer:2
    tags:
        - docker
    before_script:
        - composer global req ssch/typo3-rector
    script:
        - /tmp/vendor/bin/rector process . --config .Build/gitlab-ci/extension/typo3-rector.php --dry-run
"TypoScript Linter":
    stage: test
    image: composer:2
    tags:
        - docker
    before_script:
        - composer global req helmich/typo3-typoscript-lint
    script:
        - /tmp/vendor/bin/typoscript-lint -c .Build/gitlab-ci/extension/typoscript-lint.yml --fail-on-warnings