Skip to content

Commit 32c0c16

Browse files
committed
try parallel rector
1 parent 18b691e commit 32c0c16

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/ci_build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
- name: "Code analyze"
4040
run: |
4141
bin/phpstan analyse src/ --level=max -c phpstan.neon
42-
bin/rector process --dry-run
42+
bin/rector process config --dry-run
43+
bin/rector process spec --dry-run
44+
bin/rector process src --dry-run
4345
- name: "Run test suite"
4446
run: |
4547
composer dump-autoload -o

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"phpstan/phpstan": "^1.0",
7575
"phpstan/phpstan-webmozart-assert": "^1.0",
7676
"pimple/pimple": "^3.2",
77-
"rector/rector": "0.12.9",
77+
"rector/rector": "dev-main",
7878
"symfony/dependency-injection": "^5.0"
7979
},
8080
"suggest": {
@@ -85,7 +85,11 @@
8585
},
8686
"config": {
8787
"bin-dir": "bin",
88-
"sort-packages": true
88+
"sort-packages": true,
89+
"allow-plugins": {
90+
"dealerdirect/phpcodesniffer-composer-installer": true,
91+
"composer/package-versions-deprecated": true
92+
}
8993
},
9094
"extra": {
9195
"laminas": {

rector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
$containerConfigurator->import(SetList::TYPE_DECLARATION_STRICT);
2424

2525
$parameters = $containerConfigurator->parameters();
26-
$parameters->set(Option::PATHS, [__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/spec']);
27-
26+
$parameters->set(Option::PARALLEL, true);
2827
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
2928

3029
$parameters->set(Option::SKIP, [

0 commit comments

Comments
 (0)