Run Rector in the check workflow

This commit is contained in:
Giuseppe Criscione 2024-05-24 23:42:06 +02:00
parent d07b583703
commit 9401ccb947
2 changed files with 4 additions and 0 deletions

View File

@ -32,3 +32,6 @@ jobs:
- name: Run PHPStan
run: composer phpstan
- name: Run Rector
run: composer rector:check

View File

@ -40,6 +40,7 @@
"phpstan": "phpstan analyse --configuration=formwork/phpstan.neon",
"phpstan:baseline": "phpstan analyse --configuration=formwork/phpstan.neon --generate-baseline=formwork/phpstan-baseline.neon",
"rector": "rector --config=formwork/.rector.php",
"rector:check": "rector --dry-run --config=formwork/.rector.php",
"serve": [
"Composer\\Config::disableProcessTimeout",
"php bin/serve"