Update phpunit/phpunit requirement from ^9.0 to ^11.2 #796
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format (PHP) | |
on: | |
pull_request: | |
branches: | |
- main | |
- 2.0 | |
jobs: | |
php-cs-fixer: | |
runs-on: ubuntu-latest | |
# dont run jobs on forks, because we are not allowed to commit | |
# workaround for missing secret in fork PRs - see https://github.com/actions/checkout/issues/298 | |
# see https://github.com/rectorphp/rector/commit/d395e1c28b8e6a56711dcc2e10490a82965850e4 | |
if: github.event.pull_request.draft == false && github.repository == 'TYPO3/Surf' && github.actor != 'dependabot[bot]' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PHP_CS_FIXER }} | |
ref: ${{ github.head_ref }} | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
coverage: none # disable xdebug, pcov | |
- uses: "ramsey/composer-install@v2" | |
- name: Run php-cs-fixer | |
run: vendor/bin/php-cs-fixer fix --diff | |
- name: "Commit changed files" | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply php-cs-fixer changes | |
branch: ${{ github.head_ref }} |