diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2ec38ad..3371651 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,21 @@ jobs: strategy: matrix: - php-versions: ['8.3', '8.2', '8.1', '8.0'] + php: ['8.3', '8.2', '8.1', '8.0'] + laravel: ['9.*', '10.*'] + dependency-version: [prefer-stable] + include: + - laravel: 9.* + testbench: 7.* + - laravel: 10.* + testbench: 8.* + exclude: + - laravel: 10.* + php: 8.0 + - laravel: 11.* + php: 8.1 + + name: P${{ matrix.php }} - L${{ matrix.laravel }} steps: - uses: actions/checkout@v2 @@ -21,18 +35,17 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-versions }} + php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif coverage: xdebug - - name: Validate composer.json and composer.lock run: composer validate - name: Install dependencies run: | - composer install - composer dump + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Run test phpunit run: vendor/bin/phpunit \ No newline at end of file diff --git a/composer.json b/composer.json index bb1fc17..f49a811 100644 --- a/composer.json +++ b/composer.json @@ -26,13 +26,13 @@ "guzzlehttp/guzzle": "^7.4", "league/omnipay": "^3.2", "omnipay/common": "^3.2", - "illuminate/contracts": "^9.25|^10.0" + "illuminate/contracts": "^9.25|^10.0|^11.0" }, "require-dev": { "guzzlehttp/psr7": "^1", "omnipay/tests": "^4.1", - "phpunit/phpunit": "^9.5", - "orchestra/testbench": "^7.0|^8.0", + "phpunit/phpunit": "^9.5|^10.0", + "orchestra/testbench": "^7.0|^8.0|^9.0", "friendsofphp/php-cs-fixer": "^3.10", "phpstan/phpstan": "^1.8", "nunomaduro/larastan": "^2.1"