diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 83b8b83ba..0407a692e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,20 +9,25 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: [8.0, 8.1] - laravel: [9.*, 8.*] + php: [8.0, 8.1, 8.2] + laravel: [10.*, 9.*, 8.*] dependency-version: [prefer-lowest, prefer-stable] include: + - laravel: 10.* + testbench: 8.* - laravel: 9.* - testbench: 7.* + testbench: ^7.22 - laravel: 8.* - testbench: ^6.23 + testbench: ^6.25 + exclude: + - laravel: 10.* + php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -35,5 +40,6 @@ jobs: run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest + - name: Execute tests run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index c8105ab14..483e655ec 100644 --- a/composer.json +++ b/composer.json @@ -6,9 +6,9 @@ "require": { "php": "^8.0", "loophp/phptree": "^2.5", - "illuminate/database": "^8.0|^9.0", - "illuminate/events": "^8.0|^9.0", - "illuminate/support": "^8.0|^9.0" + "illuminate/database": "^8.0|^9.0|^10.0", + "illuminate/events": "^8.0|^9.0|^10.0", + "illuminate/support": "^8.0|^9.0|^10.0" }, "authors": [ { @@ -37,6 +37,6 @@ "sort-packages": true }, "require-dev": { - "orchestra/testbench": "^6.0|^7.0" + "orchestra/testbench": "^6.25.1|^7.22|^8.0" } } diff --git a/phpunit.xml b/phpunit.xml index 60abb45bd..092fa6186 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,11 +1,7 @@ @@ -14,4 +10,4 @@ ./tests/ - \ No newline at end of file +