From 5d6dbad44975891099bd26190004ec8d912b8e4f Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 2 Mar 2024 04:59:06 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 11 --- composer.json | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 92701dc..6f9ccba 100644 --- a/composer.json +++ b/composer.json @@ -1,41 +1,40 @@ { "name": "kalnoy/nestedset", "description": "Nested Set Model for Laravel 5.7 and up", - "keywords": ["laravel", "nested sets", "nsm", "database", "hierarchy"], + "keywords": [ + "laravel", + "nested sets", + "nsm", + "database", + "hierarchy" + ], "license": "MIT", - "authors": [ { "name": "Alexander Kalnoy", "email": "lazychaser@gmail.com" } ], - "require": { "php": "^7.2.5|^8.0", - "illuminate/support": "^7.0|^8.0|^9.0|^10.0", - "illuminate/database": "^7.0|^8.0|^9.0|^10.0", - "illuminate/events": "^7.0|^8.0|^9.0|^10.0" + "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/database": "^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/events": "^7.0|^8.0|^9.0|^10.0|^11.0" }, - "autoload": { "psr-4": { "Kalnoy\\Nestedset\\": "src/" } }, - "require-dev": { - "phpunit/phpunit": "7.*|8.*|9.*" + "phpunit/phpunit": "7.*|8.*|9.*|^10.5" }, - "minimum-stability": "dev", "prefer-stable": true, - "extra": { "branch-alias": { "dev-master": "v5.0.x-dev" }, - "laravel": { "providers": [ "Kalnoy\\Nestedset\\NestedSetServiceProvider" From 9a6f9218bad3d344faa8d427fbedb47437b3aded Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 2 Mar 2024 04:59:06 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 11 --- .github/workflows/run-tests.yml | 42 +++++++++++++++++---------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 438e5dd..642b068 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -3,41 +3,43 @@ name: Unit Tests on: push: branches: - - master + - master pull_request: branches: - - "*" + - * schedule: - - cron: '0 0 * * *' + - cron: '0 0 * * *' jobs: php-tests: runs-on: ubuntu-latest + timeout-minutes: 15 + env: COMPOSER_NO_INTERACTION: 1 strategy: fail-fast: false matrix: - php: [8.1, 8.0, 7.4, 7.3, 7.2] + php: [7.2, 7.3, 7.4, 8.0, 8.1, '8.2'] name: P${{ matrix.php }} steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - tools: composer:v2 - - - name: Install dependencies - run: | - composer install -o --quiet - - - name: Execute Unit Tests - run: composer test + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + tools: composer:v2 + + - name: Install dependencies + run: | + composer install -o --quiet + + - name: Execute Unit Tests + run: composer test