PHP 8.2.31
Preview: rector-gitlab-check.yaml Size: 668 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/templates/rector-gitlab-check.yaml

stages:
    - setup
    - rector
    - commit_changes

setup:
    stage: setup
    # see https://github.com/thecodingmachine/docker-images-php
    image: thecodingmachine/php:8.2-v4-slim-cli

rector:
    stage: rector
    script:
        - vendor/bin/rector --ansi
        # @todo apply coding standard if used

commit_changes:
    stage: commit_changes
    script:
        - git config --global user.email "ci@gitlab.com"
        - git config --global user.name "GitLab CI
        # - git checkout $CI_COMMIT_REF_NAME
        - git add .
        - git commit -m "[rector] Rector fixes"
        - git push origin $CI_COMMIT_REF_NAME
    only:
        - merge_requests

Directory Contents

Dirs: 2 × Files: 3

Name Size Perms Modified Actions
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
1.17 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
668 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
240 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).