diff --git a/.github/workflows/tests-laravel-10.yml b/.github/workflows/tests-laravel-10.yml new file mode 100644 index 0000000..dda1a50 --- /dev/null +++ b/.github/workflows/tests-laravel-10.yml @@ -0,0 +1,33 @@ +name: Tests Laravel 10 + +on: [push, pull_request] + +jobs: + tests-laravel-10: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php: [8.1, 8.2] + + name: PHP ${{ matrix.php }} + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: mbstring, sqlite, pdo_sqlite, iconv + coverage: none + + - name: Install dependencies + run: | + composer require "laravel/framework:10.*" "orchestra/testbench:8.*" --no-interaction --no-update + composer update --prefer-stable --prefer-dist --no-interaction + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index ce11e64..ab15bb4 100644 --- a/composer.json +++ b/composer.json @@ -5,14 +5,14 @@ "license": "MIT", "require": { "php": "^8.0|^8.1|^8.2", - "illuminate/console": "^7.0|^8.0|^9.0", - "illuminate/contracts": "^7.0|^8.0|^9.0", - "illuminate/support": "^7.0|^8.0|^9.0", + "illuminate/console": "^7.0|^8.0|^9.0|^10.0", + "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0", + "illuminate/support": "^7.0|^8.0|^9.0|^10.0", "wakebit/cycle-bridge": "^2.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.4", - "orchestra/testbench": "^4.8 || ^5.2 || ^6.0 || ^7.0", + "orchestra/testbench": "^4.8 || ^5.2 || ^6.0 || ^7.0 || ^8.0", "phpunit/phpunit": "^9.5", "psalm/plugin-phpunit": "^0.16.1", "vimeo/psalm": "^4.22"