From 7a8289d7ceacf9a279d0fe2963fd41ab03d29820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B0=D1=82=D0=B0=D0=BB=D0=B8=D1=8F?= Date: Tue, 7 May 2024 13:50:30 +0300 Subject: [PATCH] laravel-11 (#8) Co-authored-by: Ms_Natali --- .github/workflows/run-tests.yml | 22 ++++++++++++++-------- composer.json | 4 ++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 9d5d31a..0f3f130 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,21 +8,27 @@ on: jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] - php: [8.1] - laravel: [8.*, 9.*] - stability: [prefer-lowest, prefer-stable] + php: [8.1, 8.2, 8.3] + laravel: [8.*, 9.*, 10.*, 11.*] include: - laravel: 8.* testbench: ^6.23 - laravel: 9.* - testbench: ^7.0 + testbench: 7.* + - laravel: 10.* + testbench: 8.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.1 + + name: P${{ matrix.php }} - L${{ matrix.laravel }} - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code @@ -42,6 +48,6 @@ jobs: - name: Install dependencies run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --${{ matrix.stability }} --prefer-dist --no-interaction + composer update --prefer-stable --prefer-dist --no-interaction - name: Execute tests run: vendor/bin/pest diff --git a/composer.json b/composer.json index 179d08d..db4888e 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "license": "MIT", "require": { "php": "^8.1", - "illuminate/contracts": "^8.37 || ^9.0 || ^10.0", + "illuminate/contracts": "^8.37 || ^9.0 || ^10.0 || ^11.0", "ensi/initial-event-propagation": "^0.2" }, "autoload": { @@ -25,7 +25,7 @@ } }, "require-dev": { - "orchestra/testbench": "^6.23 || ^7.0 || ^8.0", + "orchestra/testbench": "^6.0||^7.0||^8.0||^9.0", "pestphp/pest": "^1.22 || ^2.0", "pestphp/pest-plugin-laravel": "^1.1 || ^2.0", "spatie/laravel-ray": "^1.23",