From 635b47d1679d2ee924679349ec47f37f08714652 Mon Sep 17 00:00:00 2001 From: Randall Wilk Date: Sun, 10 Mar 2024 17:29:55 -0500 Subject: [PATCH 1/2] Update automated tests for Laravel 11.x --- .github/workflows/run-tests.yml | 7 ++++++- composer.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 6400213..f323310 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -7,6 +7,9 @@ on: - 'phpunit.xml.dist' - '.github/workflows/run-tests.yml' - 'composer.json' + pull_request: + branches: + - main jobs: test: @@ -15,11 +18,13 @@ jobs: fail-fast: true matrix: php: [8.3, 8.2, 8.1] - laravel: [10.*] + laravel: [11.*, 10.*] dependency-version: [prefer-lowest, prefer-stable] include: - laravel: 10.* testbench: 8.* + - laravel: 11.* + testbench: 9.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} diff --git a/composer.json b/composer.json index 8320945..6d84da8 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "require-dev": { "laravel/pint": "^1.2", "nunomaduro/larastan": "^2.6", - "orchestra/testbench": "^8.0", + "orchestra/testbench": "^8.0|^9.0", "pestphp/pest": "^2.10", "pestphp/pest-plugin-laravel": "^2.2", "spatie/laravel-ray": "^1.31" From cb7726d1ecd82a8e873276912f08d02ba89038c8 Mon Sep 17 00:00:00 2001 From: Randall Wilk Date: Sun, 10 Mar 2024 17:30:50 -0500 Subject: [PATCH 2/2] Exclude php 8.1 from Laravel 11 tests --- .github/workflows/run-tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f323310..78d0894 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -25,6 +25,9 @@ jobs: testbench: 8.* - laravel: 11.* testbench: 9.* + exclude: + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}