From f25ce676da3fd81a8482c36bb95e5d36870744a9 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 15:52:34 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 11 --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index f6aab04..5cf20e7 100644 --- a/composer.json +++ b/composer.json @@ -23,16 +23,16 @@ ], "require": { "php": "^8.0", - "illuminate/contracts": "^8.0|^9.0|^10.0", + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0", "spatie/data-transfer-object": "^3.0.4", "thecodingmachine/safe": "^1.3|^2.0" }, "require-dev": { - "brianium/paratest": "^6.2", + "brianium/paratest": "^6.2|^7.4", "mockery/mockery": "^1.4", - "nunomaduro/collision": "^5.3|^6.0", - "orchestra/testbench": "^6.15|^7.0|^8.0", - "phpunit/phpunit": "^9.5", + "nunomaduro/collision": "^5.3|^6.0|^8.0", + "orchestra/testbench": "^6.15|^7.0|^8.0|^9.0", + "phpunit/phpunit": "^9.5|^10.5", "vimeo/psalm": "^4.4|^5.6" }, "autoload": { From 380c70a231e26a5a517fa49fdd3a74a76e6bbca6 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 15:52:35 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 11 --- .github/workflows/run-tests.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1c962c2..6cebed7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,19 +2,22 @@ name: run-tests on: push: - branches: [ main ] + branches: + - main pull_request: - branches: [ main ] + branches: + - main jobs: test: runs-on: ${{ matrix.os }} + strategy: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.0, 8.1] - laravel: [8.*, 9.*, 10.*] + php: [8.0, 8.1, '8.2'] + laravel: ['8.*', '9.*', '10.*', '11.*'] stability: [prefer-lowest, prefer-stable] include: - laravel: 10.* @@ -23,9 +26,15 @@ jobs: testbench: ^6.24 - laravel: 9.* testbench: ^7.0 + - laravel: 11.* + testbench: ^9.0 exclude: - laravel: 10.* php: 8.0 + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -44,9 +53,11 @@ jobs: run: | echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - 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 + - name: Execute tests run: vendor/bin/phpunit