diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6b7c638..ea4c4df 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,53 +4,57 @@ on: push: branches: - main - pull_request: - types: [ opened, synchronize, reopened ] + types: + - opened + - synchronize + - reopened jobs: test: runs-on: ubuntu-latest + strategy: fail-fast: false matrix: - php: [ 7.4, 8.0, 8.1, 8.2 ] - laravel: [ 8.*, 9.* , 10.*] - dependency-version: [ prefer-lowest, prefer-stable ] + php: [8.0, 8.1, 8.2, 8.3] + laravel: ['8.*', '9.*', '10.*', '11.*'] + dependency-version: [prefer-lowest, prefer-stable] include: - - laravel: 10.* - testbench: 8.* - laravel: 8.* testbench: 6.* - laravel: 9.* testbench: 7.* + - laravel: 10.* + testbench: 8.* + - laravel: 11.* + testbench: 9.* exclude: - - laravel: 10.* - php: 7.3 - - laravel: 10.* - php: 7.4 - - laravel: 10.* - php: 8.0 - - # PHP 8.1 requires Laravel 8.65, so skip lowest - laravel: 8.* php: 8.1 dependency-version: prefer-lowest - - # PHP 8.2 requires Laravel 8.65, so skip lowest - laravel: 8.* php: 8.2 dependency-version: prefer-lowest - - - laravel: 9.* - php: 7.4 + - laravel: 8.* + php: 8.3 + dependency-version: prefer-lowest + + - laravel: 10.* + php: 8.0 + + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 + name: P${{ matrix.php }} / L${{ matrix.laravel }} / ${{ matrix.dependency-version }} services: mysql: - image: mysql:5.7 + image: mysql:8.0 env: MYSQL_DATABASE: fast_paginate MYSQL_HOST: 127.0.0.1 @@ -63,10 +67,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.composer/cache/files key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} diff --git a/.gitignore b/.gitignore index 7479fc6..f547ce8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ bootstrap/cache/services.php docs/*.blade.php docs/**/*.blade.php phpunit.xml +.phpunit.cache/test-results diff --git a/composer.json b/composer.json index 768c2cc..d586ed6 100644 --- a/composer.json +++ b/composer.json @@ -11,13 +11,13 @@ ], "require": { "php": "^7.4|^8.0", - "illuminate/database": "^8.37|^9.0|^10.0" + "illuminate/database": "^8.37|^9.0|^10.0|^11.0" }, "require-dev": { - "orchestra/testbench": "^6|^7|^8.0", + "orchestra/testbench": "^6|^7|^8.0|^9.0", "mockery/mockery": "^1.3.3", "phpunit/phpunit": ">=8.5.23|^9", - "laravel/scout": "^9.4" + "laravel/scout": "^9.4|^10.8" }, "autoload": { "psr-4": {