Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
name: 'PHPStan'
run: vendor/bin/phpstan

-
name: 'Tests'
run: vendor/bin/phpunit

name: ${{ matrix.actions.name }}

runs-on: ubuntu-latest
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/rector.yaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# github action that checks code with Rector
name: Rector

on:
pull_request: null

env:
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
COMPOSER_ROOT_VERSION: "dev-main"

jobs:
rector:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == 'rectorphp/rector-symfony'
steps:
-
if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/checkout@v4
with:
# Must be used to trigger workflow after push
token: ${{ secrets.ACCESS_TOKEN }}

-
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none

- uses: "ramsey/composer-install@v2"

- run: vendor/bin/rector --ansi

-
# commit only to core contributors who have repository access
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[rector] Rector fixes'
commit_author: 'GitHub Action <actions@github.com>'
commit_user_email: 'action@github.com'
29 changes: 0 additions & 29 deletions .github/workflows/tests.yaml

This file was deleted.