-
-
Notifications
You must be signed in to change notification settings - Fork 359
42 lines (33 loc) · 1.39 KB
/
rector.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Rector
on:
pull_request: null
jobs:
rector:
strategy:
fail-fast: false
runs-on: ubuntu-latest
timeout-minutes: 8
if: github.event.pull_request.head.repo.full_name == 'rectorphp/rector-src'
steps:
-
uses: actions/checkout@v4
with:
# Must be used to trigger workflow after push
token: ${{ secrets.ACCESS_TOKEN }}
- run: echo "run on ${{ github.event.pull_request.head.repo.full_name }}"
-
uses: shivammathur/setup-php@v2
with:
# PHP 8.2 is required, so Rector's code is PHP 8.2 compatible even after refactoring
php-version: 8.2
coverage: none
- run: composer install --no-progress --ansi
## First run Rector - here can't be --dry-run !!! it would stop the job with it and not commit anything in the future
- run: bin/rector process --ansi
-
# commit only to core contributors who have repository access
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[ci-review] Rector Rectify'
commit_author: 'GitHub Action <[email protected]>'
commit_user_email: '[email protected]'