From 21c444212a730d3ab773777121cdb01d565c1868 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 18 Feb 2025 20:18:00 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 12 --- composer.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 5737a5b..d6a60a3 100644 --- a/composer.json +++ b/composer.json @@ -37,16 +37,16 @@ "require": { "php": "^8.2", "twilio/sdk": "^7.16 || ^8.3", - "illuminate/notifications": "^11.0", - "illuminate/support": "^11.0", - "illuminate/events": "^11.0", - "illuminate/queue": "^11.0" + "illuminate/notifications": "^11.0 || ^12.0", + "illuminate/support": "^11.0 || ^12.0", + "illuminate/events": "^11.0 || ^12.0", + "illuminate/queue": "^11.0 || ^12.0" }, "require-dev": { "laravel/pint": "^1.18", "mockery/mockery": "^1.0", - "orchestra/testbench": "^9.0", - "phpunit/phpunit": "^10.5" + "orchestra/testbench": "^9.0 || ^10.0", + "phpunit/phpunit": "^10.5 || ^11.5.3" }, "autoload": { "psr-4": { From 6ce0aa7588bf272300b1f41dc598ffecb1630a85 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 18 Feb 2025 20:18:00 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 12 --- .github/workflows/ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c5d3f8..49d8f3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,46 +1,57 @@ name: CI -on: [push, pull_request] +on: + - push + - pull_request jobs: phplint: runs-on: ubuntu-latest + name: PHP Linting (Pint) + steps: - name: Checkout uses: actions/checkout@v4 - - name: "laravel-pint" + + - name: laravel-pint uses: aglipanci/laravel-pint-action@latest with: preset: laravel verboseMode: true testMode: true - configPath: "pint.json" + configPath: pint.json pintVersion: 1.18.2 onlyDirty: true test: runs-on: ubuntu-latest + strategy: max-parallel: 15 fail-fast: false matrix: php: [8.3, 8.2] - laravel: [11.*] + laravel: ['11.*', '12.*'] stability: [prefer-lowest, prefer-stable] include: - laravel: 11.* testbench: 9.* + - laravel: 12.* + testbench: 10.* + name: PHP${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} + steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -48,16 +59,20 @@ jobs: extensions: mbstring, xdebug coverage: xdebug + - name: Install dependencies run: | composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest + - name: Lint composer.json run: composer validate + - name: Run Tests run: composer test:unit + - name: Run Integration Tests run: composer test:integration