From 48ffb20ee6e8f06a846bdd46f0b0c9d8164435ba Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 17 Feb 2025 03:23:59 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 12 --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 2e21735..bfbf592 100644 --- a/composer.json +++ b/composer.json @@ -25,10 +25,10 @@ "require": { "php": "^8.2", "ext-json": "*", - "illuminate/auth": "^11.0", - "illuminate/contracts": "^11.0", - "illuminate/http": "^11.0", - "illuminate/support": "^11.0" + "illuminate/auth": "^11.0|^12.0", + "illuminate/contracts": "^11.0|^12.0", + "illuminate/http": "^11.0|^12.0", + "illuminate/support": "^11.0|^12.0" }, "require-dev": { "phpunit/phpunit": "^10.5" From 04a11ad0e53ed7c5b0a9c4421697215103a56795 Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 17 Feb 2025 03:23:59 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 12 --- .github/workflows/tests.yml | 61 ++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bed8493..7dd3fc7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,43 +2,48 @@ name: Tests on: push: - branches: [ main, develop, 4.x ] + branches: + - main + - develop + - 4.x pull_request: - branches: [ main, develop, 4.x ] + branches: + - main + - develop + - 4.x jobs: build: - runs-on: ubuntu-latest strategy: fail-fast: true matrix: php: [8.2, 8.3, 8.4] - laravel: [11] + laravel: [11, '12'] steps: - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip - tools: composer:v2 - coverage: none - ini-values: error_reporting=E_ALL, zend.assertions=1 - - - name: Set Laravel Version - run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update - - - name: Install dependencies - uses: nick-fields/retry@v2 - with: - timeout_minutes: 5 - max_attempts: 5 - command: composer update --prefer-dist --no-interaction --no-progress - - - name: Execute tests - run: vendor/bin/phpunit + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip + tools: composer:v2 + coverage: none + ini-values: error_reporting=E_ALL, zend.assertions=1 + + - name: Set Laravel Version + run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update + + - name: Install dependencies + uses: nick-fields/retry@v2 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer update --prefer-dist --no-interaction --no-progress + + - name: Execute tests + run: vendor/bin/phpunit