From eb01216141e62433178c52b0cbdb785b45bae871 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sat, 4 Feb 2023 16:47:28 +0100 Subject: [PATCH] Drop lower PHP/Laravel versions (#1386) * Drop lower PHP versions * Dev stability * Fix versions --- .github/workflows/run-integration-tests.yml | 36 ++++++--------------- .github/workflows/run-tests.yml | 22 ++----------- composer.json | 10 +++--- 3 files changed, 16 insertions(+), 52 deletions(-) diff --git a/.github/workflows/run-integration-tests.yml b/.github/workflows/run-integration-tests.yml index b881bef1..49877b8f 100644 --- a/.github/workflows/run-integration-tests.yml +++ b/.github/workflows/run-integration-tests.yml @@ -18,21 +18,11 @@ jobs: COMPOSER_NO_INTERACTION: 1 strategy: matrix: - php: [8.1, 8.0, 7.4, 7.3, 7.2] - lumen: [9.*, 8.*, 7.*] + php: [8.2, 8.1, 8.0] + lumen: [9.*] exclude: - - lumen: 8.* - php: 7.2 - - lumen: 9.* - php: 7.2 - - lumen: 9.* - php: 7.3 - - lumen: 9.* - php: 7.4 - - lumen: 7.* + - lumen: 10.* php: 8.0 - - lumen: 7.* - php: 8.1 name: P${{ matrix.php }} - Lumen${{ matrix.lumen }} steps: - name: Checkout code @@ -49,7 +39,7 @@ jobs: - name: Install dependencies run: | - composer create-project --prefer-dist laravel/lumen:${{ matrix.lumen }} --no-progress sample + composer create-project --prefer-dist laravel/lumen:${{ matrix.lumen }} --stability=dev --no-progress sample cd sample composer config minimum-stability dev composer update --prefer-stable --prefer-dist --no-progress @@ -75,19 +65,11 @@ jobs: COMPOSER_NO_INTERACTION: 1 strategy: matrix: - php: [8.1, 8.0, 7.4, 7.3, 7.2] - laravel: [9.*, 8.*, 7.*] + php: [8.2, 8.1, 8.0] + laravel: [10.*, 9.*] exclude: - - laravel: 8.* - php: 7.2 - - laravel: 9.* - php: 7.2 - - laravel: 9.* - php: 7.3 - - laravel: 9.* - php: 7.4 - - laravel: 7.* - php: 8.1 + - laravel: 10.* + php: 8.0 name: P${{ matrix.php }} - Laravel${{ matrix.laravel }} steps: - name: Checkout code @@ -104,7 +86,7 @@ jobs: - name: Install dependencies run: | - composer create-project --prefer-dist laravel/laravel:${{ matrix.laravel }} --no-progress sample + composer create-project --prefer-dist laravel/laravel:${{ matrix.laravel }} --stability=dev --no-progress sample cd sample composer config minimum-stability dev composer update --prefer-stable --prefer-dist --no-progress diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 48111fe4..f42ee34b 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,28 +19,10 @@ jobs: strategy: matrix: - php: [8.2, 8.1, 8.0, 7.4, 7.3, 7.2] - laravel: [^10, ^9, ^8, ^7] + php: [8.2, 8.1, 8.0] + laravel: [^10, ^9] dependency-version: [prefer-lowest, prefer-stable] exclude: - - laravel: ^7 - php: 8.1 - - laravel: ^7 - php: 8.2 - - laravel: ^8 - php: 7.2 - - laravel: ^9 - php: 7.2 - - laravel: ^9 - php: 7.3 - - laravel: ^9 - php: 7.4 - - laravel: ^10 - php: 7.2 - - laravel: ^10 - php: 7.3 - - laravel: ^10 - php: 7.4 - laravel: ^10 php: 8.0 diff --git a/composer.json b/composer.json index 5313e1db..4312ed4a 100644 --- a/composer.json +++ b/composer.json @@ -10,12 +10,12 @@ } ], "require": { - "php": ">=7.2.5", + "php": "^8.0", "maximebf/debugbar": "^1.17.2", - "illuminate/routing": "^7|^8.67|^9|^10", - "illuminate/session": "^7|^8.67|^9|^10", - "illuminate/support": "^7|^8.67|^9|^10", - "symfony/finder": "^5|^6" + "illuminate/routing": "^9|^10", + "illuminate/session": "^9|^10", + "illuminate/support": "^9|^10", + "symfony/finder": "^6" }, "require-dev": { "mockery/mockery": "^1.3.3",