From 49b3739557181ce690d412fe95c3ef01bf930b45 Mon Sep 17 00:00:00 2001 From: George Tudor Date: Thu, 14 Mar 2024 13:50:05 +0200 Subject: [PATCH] support for PHP 8.2, 8.3 and Laravel 11 --- .github/workflows/run-tests.yml | 18 ++++++++++++------ composer.json | 8 ++++---- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f7492c5..d040b55 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -3,11 +3,11 @@ name: run-tests on: push: paths: - - '**.php' - - '.github/workflows/run-tests.yml' - - 'phpunit.xml.dist' - - 'composer.json' - - 'composer.lock' + - "**.php" + - ".github/workflows/run-tests.yml" + - "phpunit.xml.dist" + - "composer.json" + - "composer.lock" jobs: test: @@ -18,12 +18,18 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] php: [8.3, 8.2, 8.1] - laravel: [10.*] + laravel: [10.*, 11.*] stability: [prefer-lowest, prefer-stable] include: - laravel: 10.* testbench: 8.* carbon: ^2.63 + - laravel: 11.* + testbench: 9.* + carbon: ^3.0 + exclude: + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index ab81ea7..78769d1 100644 --- a/composer.json +++ b/composer.json @@ -16,15 +16,15 @@ } ], "require": { - "php": "^8.1", + "php": "^8.1|^8.2|^8.3", "spatie/laravel-package-tools": "^1.14.0", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^10.0|^11.0", "laravel/pulse": "^1.0@beta" }, "require-dev": { "laravel/pint": "^1.0", - "nunomaduro/collision": "^7.8", - "orchestra/testbench": "^8.8", + "nunomaduro/collision": "^7.8|^8.0", + "orchestra/testbench": "^8.8|^9.0", "pestphp/pest": "^2.20", "pestphp/pest-plugin-arch": "^2.0", "pestphp/pest-plugin-laravel": "^2.0"