From 5baa24fd7bc82919aaf8a7a008dc2cb7baf5306c Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 17 Feb 2025 02:33:56 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 12 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index ebf87cc..dc70110 100644 --- a/composer.json +++ b/composer.json @@ -17,11 +17,11 @@ ], "require": { "php": ">=8.2.0", - "illuminate/support": "^11.0" + "illuminate/support": "^11.0|^12.0" }, "require-dev": { "nunomaduro/larastan": "^2.0", - "orchestra/testbench": "^9.0", + "orchestra/testbench": "^9.0|^10.0", "phpunit/phpunit": "^11.0" }, "autoload": { @@ -53,4 +53,4 @@ } } } -} \ No newline at end of file +} From 90640e783114f98cc6f995f12af5ad27f4e2e6ff Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 17 Feb 2025 02:33:56 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 12 --- .github/workflows/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9519254..c6c0fd8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,28 +2,35 @@ name: run-tests on: push: - branches: [main] + branches: + - main pull_request: - branches: [main] + branches: + - main jobs: test: runs-on: ${{ matrix.os }} + strategy: fail-fast: false matrix: os: [ubuntu-latest] php: [8.2] - laravel: [11.*] + laravel: ['11.*', '12.*'] stability: [prefer-stable] include: - laravel: 11.* testbench: ^9.0 + - laravel: 12.* + testbench: ^10.0 + env: DB_CONNECTION: testing DB_DATABASE: laravel DB_USERNAME: root DB_PASSWORD: TestDB@1234 + services: mysql: image: mysql:latest @@ -52,10 +59,12 @@ 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 env: