From 5e1c99727c854ca64f1ff86c265fd0699ea83f9f Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 2 Mar 2024 15:03:50 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 11 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index b0bea9f..26f775d 100644 --- a/composer.json +++ b/composer.json @@ -25,11 +25,11 @@ "require": { "php": "^8.0", "guzzlehttp/guzzle": "^7.0", - "illuminate/support": "^8.0|^9.0|^10.0" + "illuminate/support": "^8.0|^9.0|^10.0|^11.0" }, "require-dev": { - "orchestra/testbench": "^6.0|^7.0|^8.0", - "pestphp/pest": "^1.20", + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0", + "pestphp/pest": "^1.20|^2.34", "pestphp/pest-plugin-parallel": "^1.0" }, "autoload": { From 987fe57518aefa3c705d13742a9c74d9db8ed172 Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 2 Mar 2024 15:03:50 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 11 --- .github/workflows/test.yml | 89 +++++++++++++++++++++----------------- 1 file changed, 50 insertions(+), 39 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3a126a..687b340 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,44 +1,55 @@ name: Run tests on: - schedule: - - cron: "0 0 * * *" - push: - branches: [main, 2.x] - pull_request: - branches: [main, 2.x] + schedule: + - cron: '0 0 * * *' + push: + branches: + - main + - 2.x + pull_request: + branches: + - main + - 2.x jobs: - php-tests: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - php: [8.1] - laravel: [9.*] - stability: [prefer-lowest, prefer-stable] - include: - - laravel: 9.* - testbench: 7.* - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: pcov - tools: composer:v2 - - - 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/pest --coverage --parallel + php-tests: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + php: [8.1, '8.2'] + laravel: ['9.*', '11.*'] + stability: [prefer-lowest, prefer-stable] + include: + - laravel: 9.* + testbench: 7.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.1 + + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo + coverage: pcov + tools: composer:v2 + + - 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/pest --coverage --parallel