Skip to content

Commit 16654e4

Browse files
authored
Add Rector support
1 parent 2ff9e56 commit 16654e4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ jobs:
120120
run: |
121121
echo -e "\033[0;33mExecuting Psalm...\033[0m"
122122
php ../../vendor/bin/psalm --long-progress --output-format=github
123+
- name: "Rector"
124+
if: ${{ !cancelled() && hashFiles(format('{0}/vendor/bin/rector', inputs.plugin-key)) != '' && hashFiles(format('{0}/rector.php', inputs.plugin-key)) != '' }}
125+
run: |
126+
echo -e "\033[0;33mExecuting Rector...\033[0m"
127+
php vendor/bin/rector process --dry-run --ansi
123128
- name: "JS Lint"
124129
if: ${{ !cancelled() && hashFiles(format('{0}/node_modules/.bin/eslint', inputs.plugin-key)) != '' && (hashFiles(format('{0}/eslint.config.js', inputs.plugin-key)) != '' || hashFiles(format('{0}/eslint.config.mjs', inputs.plugin-key)) != '' || hashFiles(format('{0}/eslint.config.cjs', inputs.plugin-key)) != '' || hashFiles(format('{0}/.eslintrc.js', inputs.plugin-key)) != '') }}
125130
run: |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This workflow will execute the following actions as long as they are available o
1111
| PHP-CS-Fixer | [friendsofphp/php-cs-fixer](https://packagist.org/packages/friendsofphp/php-cs-fixer) | `.php-cs-fixer.php` |
1212
| PHPStan | [phpstan/phpstan](https://packagist.org/packages/phpstan/phpstan) | `phpstan.neon` |
1313
| Psalm | none, GLPI provides it | `psalm.xml` |
14+
| Rector | [rector/rector](https://packagist.org/packages/rector/rector) | `rector.php` |
1415
| ESLint | [eslint](https://www.npmjs.com/package/eslint) | `eslint.config.js` or `eslint.config.mjs` or `eslint.config.cjs` or `.eslintrc.js` |
1516
| Stylelint | [stylelint](https://www.npmjs.com/package/stylelint) | `.stylelintrc.js` |
1617
| Licence headers check | [glpi-project/tools](https://packagist.org/packages/glpi-project/tools) | `tools/HEADER` |

0 commit comments

Comments
 (0)