Implementation Rector for GitHub Actions.
- Contents of file
.github/workflows/rector.yml
:
name: rector
on: [push]
jobs:
rector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rector
uses: pietrzakadrian/rector-github-action@v0.0.4
with:
directories: src #directories path
config: rector.php #configuration file
- zingimmick/rector-action is deprecated and not working.