File tree Expand file tree Collapse file tree 4 files changed +43
-31
lines changed
Expand file tree Collapse file tree 4 files changed +43
-31
lines changed Original file line number Diff line number Diff line change 3232 name : ' PHPStan'
3333 run : vendor/bin/phpstan
3434
35+ -
36+ name : ' Tests'
37+ run : vendor/bin/phpunit
38+
3539 name : ${{ matrix.actions.name }}
3640 runs-on : ubuntu-latest
3741 timeout-minutes : 10
Original file line number Diff line number Diff line change 1+ # github action that checks code with Rector
2+ name : Rector
3+
4+ on :
5+ pull_request : null
6+
7+ env :
8+ # see https://github.com/composer/composer/issues/9368#issuecomment-718112361
9+ COMPOSER_ROOT_VERSION : " dev-main"
10+
11+ jobs :
12+ rector :
13+ runs-on : ubuntu-latest
14+ if : github.event.pull_request.head.repo.full_name == 'rectorphp/rector-phpunit'
15+ steps :
16+ -
17+ if : github.event.pull_request.head.repo.full_name == github.repository
18+ uses : actions/checkout@v4
19+ with :
20+ # Must be used to trigger workflow after push
21+ token : ${{ secrets.ACCESS_TOKEN }}
22+
23+ -
24+ uses : shivammathur/setup-php@v2
25+ with :
26+ php-version : 8.3
27+ coverage : none
28+
29+ - uses : " ramsey/composer-install@v2"
30+
31+ - run : vendor/bin/rector --ansi
32+
33+ -
34+ # commit only to core contributors who have repository access
35+ uses : stefanzweifel/git-auto-commit-action@v4
36+ with :
37+ commit_message : ' [rector] Rector fixes'
38+ commit_author : ' GitHub Action <actions@github.com>'
39+ commit_user_email : ' action@github.com'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515 steps :
1616 - uses : actions/checkout@v4
1717
18-
19-
2018 - name : " Check for typos"
2119 uses : " crate-ci/typos@v1.40.0"
2220 with :
You can’t perform that action at this time.
0 commit comments