diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce1a600..c4fe2de 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,12 +10,17 @@ jobs: strategy: matrix: - php: ['8.0', '8.1'] - laravel: [9.*] + php: ['8.0', '8.1', '8.2'] + laravel: [9.*, 10.*] stability: [prefer-lowest, prefer-stable] include: - laravel: 9.* testbench: 7.* + - laravel: 10.* + testbench: 8.* + exclude: + - laravel: 10.* + php: 8.0 steps: - name: Checkout code @@ -32,5 +37,6 @@ jobs: run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction + - name: Execute tests run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 34f0ad3..946c1a2 100644 --- a/composer.json +++ b/composer.json @@ -19,15 +19,15 @@ ], "require": { "php": "^8.0", - "illuminate/config": "^9.0", - "illuminate/support": "^9.0", - "illuminate/view": "^9.0", + "illuminate/config": "^9.0|^10.0", + "illuminate/support": "^9.0|^10.0", + "illuminate/view": "^9.0|^10.0", "laravelcollective/html": "^6.3" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.12", "mockery/mockery": "^1.5", - "orchestra/testbench": "^7.11", + "orchestra/testbench": "^7.4|^8.0", "phpunit/phpunit": "^9.5" }, "autoload": { @@ -52,5 +52,7 @@ "Menu": "Akaunting\\Menu\\Facade" } } - } + }, + "minimum-stability": "dev", + "prefer-stable": true }