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