Skip to content

Bump phpstan/phpstan from 1.10.27 to 1.10.28 #535

Bump phpstan/phpstan from 1.10.27 to 1.10.28

Bump phpstan/phpstan from 1.10.27 to 1.10.28 #535

Workflow file for this run

name: PHP Composer
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
pull-requests: write
issues: write
repository-projects: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '8.2' ]
symfony-version: [ '5.4.*', '6.3.*' ]
symfony-deprecations-helper: [ 'max[direct]=0&baselineFile=./tests/allowed.json' ]
grumphp-testsuite: [ 'no-analyse' ]
grumphp-flag: [ '-no-analyse' ]
include:
- php-version: '8.1'
symfony-version: '5.4.*'
symfony-deprecations-helper: 'max[indirect]=99999&baselineFile=./tests/allowed.json'
composer-flag: '--prefer-lowest'
grumphp-flag: '-no-analyse'
grumphp-testsuite: 'no-analyse'
- php-version: '8.1'
symfony-version: '5.4.*'
symfony-deprecations-helper: 'max[direct]=0&max[indirect]=99999&baselineFile=./tests/allowed.json'
grumphp-testsuite: 'main'
- php-version: '8.1'
symfony-version: '6.3.*'
symfony-deprecations-helper: 'max[direct]=0&max[indirect]=99999'
grumphp-flag: '-no-analyse'
grumphp-testsuite: 'no-analyse'
name: "PHP: ${{ matrix.php-version }}, Symfony: ${{ matrix.symfony-version }}, GrumPHP: ${{ matrix.grumphp-testsuite }}, Composer: ${{ matrix.composer-flag }}"
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Check PHP Version
run: php -v
- name: Symfony version # run every time except for dependencies with SF 5.4 (locked in composer)
if: ${{ matrix.grumphp-testsuite == 'no-analyse' }}
run: composer config extra.symfony.require ${{ matrix.symfony-version }}
- name: Composer update # run for everything except php 8.1 or SF 5.4 locked in composer.lock
if: ${{ matrix.grumphp-testsuite == 'no-analyse' }}
run: composer update ${{ matrix.composer-flag }} --prefer-dist --no-interaction
- name: Composer install # only run for locked dependencies with php 8.1 or SF 5.4 (locked in composer)
if: ${{ matrix.grumphp-testsuite == 'main' }}
run: composer install --prefer-dist --no-interaction
- name: Run static analysis (GrumPHP)
run: composer run-script grumphp${{ matrix.php-version }}${{ matrix.grumphp-flag }}
- name: Check vendor licenses
run: composer run-script lic-check
dependabot:
needs: [ build ]
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve a dependabot PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}