Skip to content

Pull Request CI / Rector #83

Pull Request CI / Rector

Pull Request CI / Rector #83

name: "CI"
# This workflow will run after a pull request is opened or updated, assuming the pull request is labeled with "Vetted".
on:
workflow_run:
workflows:
- "Pull Request / Run Checks"
types:
- completed
permissions:
contents: read
jobs:
rector:
name: "Rector"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected]
with:
php-version: ${{ env.PHP_VERSION }}
coverage: none
extensions: mbstring
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: composer install --no-progress
- run: vendor/bin/rector process --dry-run