Skip to content

[8.0] Symfony 8 / PHP 8.5 modernisation #19

[8.0] Symfony 8 / PHP 8.5 modernisation

[8.0] Symfony 8 / PHP 8.5 modernisation #19

Workflow file for this run

name: PHP Composer
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup PHP 8.5
uses: shivammathur/setup-php@v2
with:
php-version: "8.5"
extensions: gd, imagick, exif
tools: composer:v2
coverage: none
- name: Install image processing tools
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends webp pngquant libavif-bin
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
uses: actions/cache@v5
with:
path: |
vendor
~/.composer/cache/files
key: ${{ runner.os }}-php-8.5-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-8.5-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction --ignore-platform-req=ext-gmagick
- name: Run test suite
run: composer run-script test
- name: Run PHPStan
run: composer run-script analyse
- name: Run PHP-CS-Fixer
run: composer run-script cs-check
- name: Run Twig CS Fixer
run: composer run-script twig-lint