From 908062a8f5dad5241b43678c42477c9a818f0ea3 Mon Sep 17 00:00:00 2001 From: Baspa Date: Thu, 7 Mar 2024 11:20:25 +0100 Subject: [PATCH] Update packages and tests --- .github/workflows/run-tests.yml | 22 +++++++++++++--------- composer.json | 12 ++++++------ 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 4e06e6f..142ed2c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,12 +13,19 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1] - laravel: [9.*] + php: [8.1, 8.2] + laravel: [10.*, 11.*] stability: [prefer-lowest, prefer-stable] include: - - laravel: 9.* - testbench: 7.* + - laravel: 10.* + testbench: 8.* + carbon: ^2.63 + - laravel: 11.* + testbench: 9.* + carbon: ^2.72.2 + exclude: + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -40,11 +47,8 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - - name: List Installed Dependencies - run: composer show -D - - name: Execute tests - run: vendor/bin/pest + run: vendor/bin/pest --ci \ No newline at end of file diff --git a/composer.json b/composer.json index 49aa98e..1e9bc9a 100644 --- a/composer.json +++ b/composer.json @@ -18,20 +18,20 @@ "require": { "php": "^8.1", "google/analytics-data": "^0.9.4", - "illuminate/contracts": "^9.0|^10.0", + "illuminate/contracts": "^9.0|^10.0|^11.0", "spatie/laravel-package-tools": "^1.14.0" }, "require-dev": { "laravel/pint": "^1.0", - "nunomaduro/collision": "^6.1", + "nunomaduro/collision": "^6.1|^7.0|^8.0", "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^8.0", - "pestphp/pest": "^1.21", - "pestphp/pest-plugin-laravel": "^1.1", + "orchestra/testbench": "^8.0|^9.0", + "pestphp/pest": "^1.21|^2.34", + "pestphp/pest-plugin-laravel": "^1.1|^2.3", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.6", + "phpunit/phpunit": "^9.6|^10.0", "spatie/laravel-ray": "^1.26", "rector/rector": "^0.15.17" },