Skip to content

Commit

Permalink
Merge pull request #402 from garak/fix-test-deprecations
Browse files Browse the repository at this point in the history
fix test deprecations
  • Loading branch information
stof authored Dec 20, 2024
2 parents a96dc1e + f07e7d5 commit ac96b71
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
check:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -15,63 +15,56 @@ 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
uses: actions/checkout@v4
- 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
Expand All @@ -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
Expand Down

0 comments on commit ac96b71

Please sign in to comment.