diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index b4ee2c9..f04b98b 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -6,16 +6,20 @@ jobs: phpunit: runs-on: ubuntu-latest + strategy: + matrix: + php: [ '7.3', '7.4', '8.0', '8.1' ] + steps: - name: Cancel Previous Run uses: styfle/cancel-workflow-action@0.6.0 with: access_token: ${{ github.token }} - - name: Setup PHP + - name: Setup PHP ${{ matrix.php }} uses: shivammathur/setup-php@v2 with: - php-version: '7.4' + php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, exif, imagick, bcmath coverage: none @@ -23,7 +27,7 @@ jobs: uses: actions/checkout@v2 - name: Install Composer dependencies - run: composer install --ignore-platform-reqs + run: composer install - name: Run tests run: ./vendor/bin/phpunit diff --git a/composer.json b/composer.json index e537cf8..e78e999 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,13 @@ } ], "require": { - "php": "^7.2|^7.3|^7.4|^8.0", - "illuminate/support": "^6.0|^7.0|^8.0", + "php": "^7.3|^7.4|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0", "javoscript/laravel-macroable-models": "^1.0" }, "require-dev": { "laravel/legacy-factories": "^1.0.4", - "orchestra/testbench": "^4.0|^5.0|^6.0", + "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0", "phpunit/phpunit": "^8.0|^9.0" }, "autoload": {