Skip to content

feat: add config support for 8.3 and 8.4 downgrade sets #750

feat: add config support for 8.3 and 8.4 downgrade sets

feat: add config support for 8.3 and 8.4 downgrade sets #750

name: End to End tests command with option
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
COMPOSER_ROOT_VERSION: "dev-main"
jobs:
code_analysis:
strategy:
fail-fast: false
name: End to End tests command with option
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
# see https://github.com/shivammathur/setup-php
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- uses: "ramsey/composer-install@v3"
# test various commands with options
- working-directory: e2e/command-with-option
run: |
# other command
../../bin/rector help
php ../../bin/rector help
# with explicit "process" command
../../bin/rector process --kaizen 1 --dry-run
../../bin/rector process --kaizen=1 --dry-run
php ../../bin/rector process --kaizen 1 --dry-run
php ../../bin/rector process --kaizen=1 --dry-run
../../bin/rector process some_file.php --kaizen 1
../../bin/rector process some_file.php --kaizen=1
php ../../bin/rector process some_file.php --kaizen 1
php ../../bin/rector process some_file.php --kaizen=1
# with implicit process command
../../bin/rector --kaizen 1 --dry-run
../../bin/rector --kaizen=1 --dry-run
php ../../bin/rector --kaizen 1 --dry-run
php ../../bin/rector --kaizen=1 --dry-run
../../bin/rector some_file.php --kaizen 1
../../bin/rector some_file.php --kaizen=1
php ../../bin/rector some_file.php --kaizen 1
php ../../bin/rector some_file.php --kaizen=1