chore(composer): update dependencies #524
Workflow file for this run
This file contains hidden or 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: 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.3', '8.4' ] | |
| symfony-version: [ '7.3.*' ] | |
| symfony-deprecations-helper: [ 'max[direct]=0' ] | |
| 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 | |
| run: composer validate --strict | |
| - name: Check PHP Version | |
| run: php -v | |
| - name: Symfony version # run every time except for dependencies with SF 7.1 (locked in composer) | |
| run: composer config extra.symfony.require ${{ matrix.symfony-version }} | |
| - name: Composer update | |
| run: composer update --prefer-dist --no-interaction | |
| - name: Run static analysis (GrumPHP) | |
| run: composer run-script grumphp${{ matrix.php-version }} | |
| - name: Check vendor licenses | |
| run: composer run-script lic-check | |
| auto-rebase: | |
| name: rebase dependabot PRs | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/master' || github.event == 'release' | |
| timeout-minutes: 5 | |
| steps: | |
| - name: rebase | |
| uses: "bbeesley/gha-auto-dependabot-rebase@main" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| merge: | |
| needs: [ build ] | |
| runs-on: ubuntu-latest | |
| if: ${{ github.actor == 'dependabot[bot]' }} | |
| steps: | |
| - name: Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@v1.1.1 | |
| 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}} |