From 6b50722b77196e329b99703d253d9455d257276a Mon Sep 17 00:00:00 2001 From: Naoki Tsuchiya Date: Sat, 23 Nov 2024 11:37:48 +0900 Subject: [PATCH 1/3] Set Laravel version before update dependencies --- .github/workflows/continuous-integration.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index e0afe3d..55dafd5 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -52,6 +52,9 @@ jobs: key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- + - name: Set Laravel + run: composer require --dev laravel/framework:^${{ matrix.laravel }} --no-interaction --no-update + - name: Handle lowest dependencies update if: contains(matrix.dependency, 'lowest') run: echo COMPOSER_UPDATE_FLAGS=$COMPOSER_UPDATE_FLAGS --prefer-lowest >> $GITHUB_ENV @@ -59,9 +62,6 @@ jobs: - name: Update dependencies run: composer update ${{ env.COMPOSER_UPDATE_FLAGS }} ${{ env.COMPOSER_FLAGS }} - - name: Update laravel - run: composer update ${{ env.COMPOSER_UPDATE_FLAGS }} ${{ env.COMPOSER_FLAGS }} -W laravel/framework:^${{ matrix.laravel }} - - name: Run test suite run: ./vendor/bin/phpunit --coverage-clover=coverage.xml From 657a9f4a6ee149bec31a0c9d1adbe5c3da6a5a15 Mon Sep 17 00:00:00 2001 From: Naoki Tsuchiya Date: Sat, 23 Nov 2024 11:45:44 +0900 Subject: [PATCH 2/3] Fix minimum laravel version --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 55dafd5..922dae4 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: php: [8.0, 8.1, 8.2, 8.3, 8.4] - laravel: [8, 9, 10, 11] + laravel: [8.83, 9, 10, 11] dependency: [lowest, highest] os: [ubuntu-latest] exclude: From 67d2fe9049a623a2b5c53e58a62477c98005199d Mon Sep 17 00:00:00 2001 From: Naoki Tsuchiya Date: Sat, 23 Nov 2024 12:04:10 +0900 Subject: [PATCH 3/3] Fix minimum version of phpunit/phpunit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0cfe552..faa1613 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ }, "require-dev": { "laravel/framework": "^8.83 || ^9.8 || ^10.0 || ^11.0", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9.5.10" }, "suggest": { "ext-apcu": "Needed to use ApcuCacheProvider"