Skip to content

Commit

Permalink
Merge pull request #4671 from soyuka/feat/upgrade-command
Browse files Browse the repository at this point in the history
feat: upgrade script, remove rector
  • Loading branch information
soyuka committed Mar 10, 2022
2 parents dee2868 + 4ce0382 commit 09f1ec9
Show file tree
Hide file tree
Showing 64 changed files with 1,281 additions and 2,441 deletions.
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

0 comments on commit 09f1ec9

Please sign in to comment.