Skip to content

Pull Request CI / PHP CS Fixer #82

Pull Request CI / PHP CS Fixer

Pull Request CI / PHP CS Fixer #82

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:
phpcsf:
name: "PHP CS Fixer"
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/php-cs-fixer fix src --dry-run --diff