diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 33c8a78..e58bdd5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,17 +10,17 @@ jobs: strategy: fail-fast: false matrix: - php: [7.4, 7.3, 7.2] + php: [8.3, 8.2, 8.1, 8.0] stability: [prefer-lowest, prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.stability }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.composer/cache/files key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} @@ -36,4 +36,4 @@ jobs: run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress - name: Execute tests - run: vendor/bin/phpunit --verbose + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 6b94a8d..5a9c86c 100644 --- a/composer.json +++ b/composer.json @@ -3,13 +3,14 @@ "description": "Simple trait to check ownership of models/objects", "keywords": ["laravel", "ownership", "ownable", "owns"], "require": { - "illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^8.0|^8.1|^8.2|^8.3", + "illuminate/database": "^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^9.0|^10.0|^11.0|^12.0", "laravel/legacy-factories": "^1.3" }, "require-dev": { - "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0|^10.0", - "phpunit/phpunit": "^7.5.15|^8.4|^9.0|^10.0|^11.0" + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", + "phpunit/phpunit": "^9.0|^10.0|^11.0" }, "autoload": { "psr-4": {