From 71fdf22cb050b52fc2aab9eb444f9da6dfe1a253 Mon Sep 17 00:00:00 2001 From: Shift Date: Wed, 19 Feb 2025 07:36:32 +0000 Subject: [PATCH 1/3] Bump dependencies for Laravel 12 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 6448e10..3171404 100644 --- a/composer.json +++ b/composer.json @@ -23,8 +23,8 @@ "require": { "php": "^8.2", "ext-json": "*", - "illuminate/contracts": "^10.0|^11.0", - "illuminate/support": "^10.0|^11.0", + "illuminate/contracts": "^10.0|^11.0|^12.0", + "illuminate/support": "^10.0|^11.0|^12.0", "phpunit/phpunit": "^10.5|^11.0" }, "autoload": { From d4979b672f9f32acfa7fc0b55665c764a12eca48 Mon Sep 17 00:00:00 2001 From: Shift Date: Wed, 19 Feb 2025 07:36:33 +0000 Subject: [PATCH 2/3] Update GitHub Actions for Laravel 12 --- .github/workflows/tests.yml | 65 +++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8e86b1a..1c79861 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,46 +2,49 @@ name: Tests on: push: - branches: [ main, develop ] + branches: + - main + - develop pull_request: - branches: [ main, develop ] + branches: + - main + - develop jobs: build: - runs-on: ubuntu-latest strategy: fail-fast: true matrix: php: [8.2, 8.3, 8.4] - laravel: [10, 11] - phpunit: [10.5, 11] + laravel: [10, 11, '12'] + phpunit: ['8.2', '8.3', '8.4', 10.5, 11] 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 - - - name: Set Laravel Version - run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update - - - name: Set PHPUnit Version - run: composer require "phpunit/phpunit:^${{ 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 + + - name: Set Laravel Version + run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update + + - name: Set PHPUnit Version + run: composer require "phpunit/phpunit:^${{ 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 From 80d9319559ee3512d40a899b51ab6a6661eff2ad Mon Sep 17 00:00:00 2001 From: Christopher Gammie Date: Mon, 24 Feb 2025 18:59:59 +0000 Subject: [PATCH 3/3] build: update github actions --- .github/workflows/tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c79861..adb1c97 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,12 +18,12 @@ jobs: fail-fast: true matrix: php: [8.2, 8.3, 8.4] - laravel: [10, 11, '12'] - phpunit: ['8.2', '8.3', '8.4', 10.5, 11] + laravel: [10, 11, 12] + phpunit: [10.5, 11] steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -37,10 +37,10 @@ jobs: run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update - name: Set PHPUnit Version - run: composer require "phpunit/phpunit:^${{ matrix.laravel }}" --no-update + run: composer require "phpunit/phpunit:^${{ matrix.phpunit }}" --no-update - name: Install dependencies - uses: nick-fields/retry@v2 + uses: nick-fields/retry@v3 with: timeout_minutes: 5 max_attempts: 5