Skip to content

Commit

Permalink
Merge pull request #596 from laravel-shift/l11-compatibility
Browse files Browse the repository at this point in the history
Laravel 11.x Compatibility
  • Loading branch information
lazychaser authored Mar 19, 2024
2 parents f7a36eb + 9a6f921 commit 95d2581
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 32 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
23 changes: 11 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
}
],

"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"
Expand Down

0 comments on commit 95d2581

Please sign in to comment.