From bb9499a55953b5608b3d80858664d17a18f7b4b1 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 01:36:44 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 11 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4fa7387..9193081 100644 --- a/composer.json +++ b/composer.json @@ -19,11 +19,11 @@ "require": { "php": "~7.2|^8.0", "guzzlehttp/guzzle": "^6.3|^7.0", - "illuminate/support": "~5.8|^6.0|^7.0|^8.0|^9.0|^10.0" + "illuminate/support": "~5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0" }, "require-dev": { "phpunit/phpunit": ">=7.0", - "orchestra/testbench": "^4.0|^8.0", + "orchestra/testbench": "^4.0|^8.0|^9.0", "squizlabs/php_codesniffer": "^3.0" }, "autoload": { From 191be839eacd35e6ce06a0d49a8728d1ed95b751 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 01:36:44 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 11 --- .github/workflows/main.yml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00f2f23..f055172 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,10 +6,11 @@ on: jobs: test: runs-on: ${{ matrix.os }} + strategy: matrix: - php: [8.0, 8.1] - laravel: [9.*, 10.*] + php: [8.0, 8.1, '8.2'] + laravel: ['9.*', '10.*', '11.*'] dependency-version: [prefer-lowest, prefer-stable] os: [ubuntu-latest] include: @@ -17,6 +18,13 @@ jobs: testbench: 8.* - laravel: 9.* testbench: 7.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} @@ -27,21 +35,22 @@ jobs: - name: Cache dependencies uses: actions/cache@v1 with: - path: ~/.composer/cache/files - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + path: ~/.composer/cache/files + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php }} - extensions: xml, pcov, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv - ini-values: post_max_size=256M - tools: pecl - coverage: none + php-version: ${{ matrix.php }} + extensions: xml, pcov, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv + ini-values: post_max_size=256M + tools: pecl + coverage: none - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest + - name: Execute tests run: vendor/bin/phpunit