From f07e7d577cd8270b9019db8fb366ffe2a558aef1 Mon Sep 17 00:00:00 2001 From: Massimiliano Arione Date: Fri, 20 Dec 2024 10:08:21 +0100 Subject: [PATCH] fix test deprecations --- .github/workflows/build.yaml | 43 ++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0f162626..f55195dc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,7 +6,7 @@ on: jobs: check: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 @@ -15,7 +15,7 @@ jobs: - name: Validate composer.json run: composer validate --strict --no-check-lock cs-fixer: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 name: PHP-CS-Fixer steps: - name: Checkout @@ -23,55 +23,48 @@ jobs: - name: Fix CS uses: docker://oskarstark/php-cs-fixer-ga twig-cs-fixer: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 name: Twig-CS-Fixer steps: - name: Checkout uses: actions/checkout@v4 - name: Require the vendor - run: composer require --dev --no-update vincentlanglet/twig-cs-fixer ^2.12 + run: composer require --dev --no-update vincentlanglet/twig-cs-fixer ^3.5 - name: Update run: composer update --no-interaction --no-progress - name: Run run: vendor/bin/twig-cs-fixer lint src/Knp/Menu/Resources/views tests: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: include: - description: 'No Symfony specified' php: '8.1' - env: - SYMFONY_DEPRECATIONS_HELPER: max[self]=1 + max_deprecations: 1 - description: 'No Symfony specified' php: '8.2' - env: - SYMFONY_DEPRECATIONS_HELPER: max[self]=1 + max_deprecations: 1 - description: 'No Symfony specified' php: '8.3' - env: - SYMFONY_DEPRECATIONS_HELPER: max[self]=1 + max_deprecations: 1 - description: 'No Symfony specified' php: '8.4' - env: - SYMFONY_DEPRECATIONS_HELPER: max[self]=1 + max_deprecations: 1 - description: 'Lowest deps' php: '8.1' composer_option: '--prefer-lowest' - env: - SYMFONY_DEPRECATIONS_HELPER: max[self]=0 - - description: 'Symfony 5.4' + max_deprecations: 0 + - description: 'Symfony 6' php: '8.1' - symfony: 5.4.* - env: - SYMFONY_DEPRECATIONS_HELPER: max[self]=1 - - description: 'Dev deps' - php: '8.3' + symfony: 6.4.* + max_deprecations: 1 + - description: 'Symfony 7' + php: '8.4' dev: true symfony: 7.2.* - env: - SYMFONY_DEPRECATIONS_HELPER: max[self]=1 + max_deprecations: 1 name: PHP ${{ matrix.php }} tests (${{ matrix.description }}) steps: - name: Checkout @@ -92,8 +85,10 @@ jobs: if: matrix.dev - run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }} - run: vendor/bin/phpunit + env: + SYMFONY_DEPRECATIONS_HELPER: max[self]=${{matrix.max_deprecations}} phpstan: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 name: PHPStan steps: - name: Checkout