Skip to content

Laravel 11.x Compatibility #596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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