Skip to content

Commit

Permalink
chore: add symfony 7 and remove old version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacividini committed Mar 11, 2024
1 parent b37863c commit 6eb425f
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ jobs:
runs-on: ubuntu-latest
name: PHPStan
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Checkout
uses: actions/checkout@v2
- name: composer install
Expand All @@ -18,6 +22,10 @@ jobs:
runs-on: ubuntu-latest
name: PHP-CS-Fixer
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Checkout
uses: actions/checkout@v2
- name: composer install
Expand All @@ -26,33 +34,12 @@ jobs:
run: composer cs-check

tests:
name: PHP ${{ matrix.php }} / SF ^${{ matrix.symfony }}
runs-on: ubuntu-latest
strategy:
matrix:
name:
- 'PHP 7.4 tests (Symfony 4.4)'
- 'PHP 7.4 tests (Symfony 5.1)'
- 'PHP 8.0 tests (Symfony 5.2)'
- 'PHP 8.0 tests (Symfony 5.3)'
- 'PHP 8.0 tests (Symfony 5.4)'
- 'PHP 8.0 tests (Symfony 6.0)'
- 'PHP 8.1 tests (Symfony 6.0)'
include:
- php: '7.4'
symfony: 4.4.*
- php: '7.4'
symfony: 5.1.*
- php: '8.0'
symfony: 5.2.*
- php: '8.0'
symfony: 5.3.*
- php: '8.0'
symfony: 5.4.*
- php: '8.0'
symfony: 6.0.*
- php: '8.1'
symfony: 6.0.*
name: ${{ matrix.name }}
php: ['8.2']
symfony: ['6.2.*', '6.3.*', '6.4.*', '7.0.*']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -67,6 +54,5 @@ jobs:
php-version: ${{ matrix.php }}
- run: |
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "${{ matrix.symfony }}"/' composer.json;
if: matrix.symfony
- run: composer update --no-interaction --no-progress --ansi
- run: composer phpunit

0 comments on commit 6eb425f

Please sign in to comment.