Skip to content

Commit

Permalink
fix: force rector/rector to 0.12.5
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Dec 16, 2021
1 parent 8572867 commit 7068a7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -849,17 +849,17 @@ jobs:
- 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 --dev --no-interaction --no-progress --ansi
run: composer require symfony/uid rector/rector:0.12.5 --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
run: |
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Document --transform-apisubresource -s
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Document --annotation-to-api-resource -s
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Entity --transform-apisubresource -s
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Entity --annotation-to-api-resource -s
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: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
- name: Clear test app cache
run: rm -Rf tests/Fixtures/app/var/cache/*
- name: Run Behat tests
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Bridge/Symfony/Bundle/Command/RectorCommand.php
Expand Up @@ -82,7 +82,7 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output): int
{
if (!file_exists('vendor/bin/rector')) {
$output->write('Rector is not installed. Please execute composer require --dev rector/rector');
$output->write('Rector is not installed. Please execute composer require --dev rector/rector:0.12.5');

return Command::FAILURE;
}
Expand Down

0 comments on commit 7068a7c

Please sign in to comment.