diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 59386a9..8510791 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -8,12 +8,9 @@ jobs: strategy: fail-fast: false matrix: - php: [7.4, 7.3] - laravel: [8.*] + php: [8.1, 8.0] + laravel: [9.*] dependency-version: [prefer-lowest, prefer-stable] - include: - - laravel: 8.* - testbench: 6.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} @@ -28,7 +25,7 @@ jobs: key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Setup PHP ๐Ÿ”ง - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick @@ -36,7 +33,7 @@ jobs: - name: Install dependencies ๐Ÿ”ง 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 + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests (Unit and Feature tests) via PHPUnit ๐Ÿงช run: vendor/bin/phpunit --coverage-clover=coverage.xml diff --git a/composer.json b/composer.json index 24a31a1..5e00ad1 100755 --- a/composer.json +++ b/composer.json @@ -19,13 +19,13 @@ } ], "require": { - "php": ">=7.3", - "laravel/framework": "~8.0" + "php": "^8.0", + "laravel/framework": "^9.0" }, "require-dev": { - "orchestra/testbench": "~6.0", + "orchestra/testbench": "^7.0", "phpunit/phpunit": "^9.0", - "laravel/legacy-factories": "^1.1" + "laravel/legacy-factories": "^1.3" }, "autoload": { "psr-4": {