diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 990ce21..fda9f60 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,30 +1,37 @@ name: Tests -on: [push, pull_request] +on: + - push + - pull_request jobs: test: - runs-on: ubuntu-latest + strategy: fail-fast: true matrix: php: [8.0, 8.1, 8.2] - laravel: [9.*, 10.*] + laravel: ['9.*', '10.*', '11.*'] dependency-version: [prefer-stable] include: - laravel: 9.* testbench: 7.* - laravel: 10.* testbench: 8.* + - laravel: 11.* + testbench: 9.* exclude: - php: '8.0' laravel: 10.* + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: PHP ${{ matrix.php }} - LARAVEL ${{ matrix.laravel }} - ${{ matrix.dependency-version }} steps: - - name: Checkout Code uses: actions/checkout@v2 @@ -46,5 +53,6 @@ jobs: composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" --no-interaction --no-update composer remove "tightenco/duster" --dev --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + - name: Execute Tests run: ./vendor/bin/phpunit --testdox diff --git a/composer.json b/composer.json index 8d38d7f..bdc1059 100644 --- a/composer.json +++ b/composer.json @@ -18,11 +18,11 @@ ], "require": { "php": "^8.0", - "illuminate/database": "^9.0||^10.0", - "illuminate/events": "^9.0||^10.0" + "illuminate/database": "^9.0||^10.0||^11.0", + "illuminate/events": "^9.0||^10.0||^11.0" }, "require-dev": { - "orchestra/testbench": "^7.0||^8.0", + "orchestra/testbench": "^7.0||^8.0||^9.0", "phpunit/phpunit": "^9.5.10||^10.0", "tightenco/duster": "^2.7" },