From 991c73682bcfb4639db89cff834374c310bd7fa8 Mon Sep 17 00:00:00 2001 From: Joost de Bruijn Date: Mon, 26 Feb 2024 19:30:19 +0000 Subject: [PATCH 1/2] chore: prepare for laravel 11 --- .github/workflows/run-tests.yml | 22 +++++++++++----------- composer.json | 12 +++++++----- phpunit.xml | 21 ++++++--------------- 3 files changed, 24 insertions(+), 31 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 9fb50e4..74a9ecd 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,30 +13,30 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: [8.1, 8.0, 7.4] - laravel: [9.*, 8.*, 7.*] + php: [8.3, 8.2, 8.1] + laravel: [11.*, 10.*, 9.*] dependency-version: [prefer-stable] include: + - laravel: 11.* + testbench: 9.* + - laravel: 10.* + testbench: 8.* - laravel: 9.* testbench: 7.* - - laravel: 8.* - testbench: 6.* - - laravel: 7.* - testbench: 5.* exclude: - - laravel: 9.* - php: 7.4 - - laravel: 7.* + - laravel: 11.* php: 8.1 + - laravel: 9.* + php: 8.3 name: ${{ matrix.os }} - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.composer/cache/files key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} diff --git a/composer.json b/composer.json index 7ee0c87..380b8ec 100644 --- a/composer.json +++ b/composer.json @@ -20,13 +20,15 @@ "require": { "php": ">=7.4", "ezyang/htmlpurifier": "^4.17", - "illuminate/contracts": "~7.0|~8.0|~9.0|~10.0", - "illuminate/support": "~7.0|~8.0|~9.0|~10.0" + "illuminate/contracts": "~7.0|~8.0|~9.0|~10.0|~11.0", + "illuminate/support": "~7.0|~8.0|~9.0|~10.0|~11.0" }, "require-dev": { - "phpunit/phpunit": "~8.0|~9.0", - "orchestra/testbench": "~5.0|~6.0|~7.0" + "phpunit/phpunit": "~8.0|~9.0|~10.0", + "orchestra/testbench": "~5.0|~6.0|~7.0|~8.0|~9.0" }, + "minimum-stability": "dev", + "prefer-stable": true, "archive": { "exclude": [ "/tests" @@ -52,4 +54,4 @@ } } } -} +} \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml index d1748b9..f900ff6 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,17 +1,8 @@ - - - - ./tests/ - - + + + + ./tests/ + + From 2df0dc2df2ba31967cd746a5cc80364d3887b3fd Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Tue, 12 Mar 2024 11:20:53 -0400 Subject: [PATCH 2/2] Small rework --- composer.json | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 380b8ec..153cd97 100644 --- a/composer.json +++ b/composer.json @@ -20,15 +20,13 @@ "require": { "php": ">=7.4", "ezyang/htmlpurifier": "^4.17", - "illuminate/contracts": "~7.0|~8.0|~9.0|~10.0|~11.0", - "illuminate/support": "~7.0|~8.0|~9.0|~10.0|~11.0" + "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0" }, "require-dev": { - "phpunit/phpunit": "~8.0|~9.0|~10.0", - "orchestra/testbench": "~5.0|~6.0|~7.0|~8.0|~9.0" + "phpunit/phpunit": "^8.0|^9.0|^10.0", + "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0" }, - "minimum-stability": "dev", - "prefer-stable": true, "archive": { "exclude": [ "/tests" @@ -54,4 +52,4 @@ } } } -} \ No newline at end of file +}