Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade script, remove rector #4671

Merged
merged 1 commit into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ jobs:
run: vendor/bin/behat --out=std --format=progress --profile=default --no-interaction

behat-rector-upgrade:
name: Behat (PHP ${{ matrix.php }}) (Rector)
name: Behat (PHP ${{ matrix.php }}) (upgrade script)
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
Expand Down Expand Up @@ -808,16 +808,15 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
- name: Require Symfony components and Rector dependencies
run: composer require symfony/uid rector/rector:0.12.5 --dev --no-interaction --no-progress --ansi
- name: Require Symfony components
run: composer require symfony/uid --dev --no-interaction --no-progress --ansi
- name: Install PHPUnit
run: vendor/bin/simple-phpunit --version
- name: Clear test app cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Convert annotations to attributes
- name: Convert metadata to API Platform 3
run: |
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Entity --transform-apisubresource -s -n
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Entity --annotation-to-api-resource -s -n
tests/Fixtures/app/console api:upgrade-resource -f
- name: Clear test app cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Run Behat tests
Expand Down Expand Up @@ -857,7 +856,7 @@ jobs:
continue-on-error: true

behat-rector-upgrade-mongodb:
name: Behat (PHP ${{ matrix.php }}) (Rector / MongoDB)
name: Behat (PHP ${{ matrix.php }}) (upgrade script / MongoDB)
runs-on: ubuntu-latest
env:
APP_ENV: mongodb
Expand Down Expand Up @@ -892,16 +891,15 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: composer update --no-interaction --no-progress --ansi
- name: Require Symfony components and Rector dependencies
run: composer require symfony/uid rector/rector:0.12.5 --dev --no-interaction --no-progress --ansi
- name: Require Symfony components
run: composer require symfony/uid --dev --no-interaction --no-progress --ansi
- name: Install PHPUnit
run: vendor/bin/simple-phpunit --version
- name: Clear test app cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Convert annotations to attributes
- name: Convert metadata to API Platform 3
run: |
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Document --transform-apisubresource -s -n
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Document --annotation-to-api-resource -s -n
tests/Fixtures/app/console api:upgrade-resource -f
- name: Clear test app cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Run Behat tests
Expand Down
75 changes: 0 additions & 75 deletions src/Core/Bridge/Rector/Resolver/OperationClassResolver.php

This file was deleted.

200 changes: 0 additions & 200 deletions src/Core/Bridge/Rector/Rules/AbstractAnnotationToAttributeRector.php

This file was deleted.

Loading