From 8aeaaacda13c64b67b9bcc6d11b3eac6669b7462 Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 1 Mar 2024 22:33:04 +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 fb10ffd..fb81de3 100644 --- a/composer.json +++ b/composer.json @@ -4,11 +4,11 @@ "require": { "php": "^7.3|^7.4|^8.0", "ext-intl": "*", - "illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0" + "illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0" }, "require-dev": { - "phpunit/phpunit": "^9.3.9", - "orchestra/testbench": "^6.23|^7.0.0|^8.0", + "phpunit/phpunit": "^9.3.9|^10.5", + "orchestra/testbench": "^6.23|^7.0.0|^8.0|^9.0", "laravel/legacy-factories": "^1.3.0" }, "license": "MIT", From beb262ecb9a7ae738f04798abafb8e23ff0ada19 Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 1 Mar 2024 22:33:04 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 11 --- .github/workflows/run-tests.yml | 57 +++++++++++++++++---------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f47f51d..425461c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,31 +1,34 @@ name: run-tests -on: [push, pull_request] +on: + - push + - pull_request jobs: - tests: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: true - matrix: - os: [ubuntu-latest] - php: [8.0, 7.4, 7.3, 8.1] - dependency-version: [prefer-lowest, prefer-stable] - - name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - - - name: Install dependencies - run: | - composer update --prefer-dist --no-interaction --${{ matrix.dependency-version }} - - name: Execute tests - run: vendor/bin/phpunit \ No newline at end of file + tests: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest] + php: [7.3, 7.4, 8.0, 8.1, '8.2'] + dependency-version: [prefer-lowest, prefer-stable] + + name: P${{ matrix.php }} - ${{ matrix.dependency-version }} + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + + - name: Install dependencies + run: composer update --prefer-dist --no-interaction --${{ matrix.dependency-version }} + + - name: Execute tests + run: vendor/bin/phpunit