From 6eb425fd140239bfbdf2f3a4e58832332667a63d Mon Sep 17 00:00:00 2001 From: Luca Cividini Date: Mon, 11 Mar 2024 19:28:40 +0100 Subject: [PATCH] chore: add symfony 7 and remove old version --- .github/workflows/workflow.yml | 36 +++++++++++----------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 7436319..4b3c34e 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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 @@ -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 @@ -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 @@ -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