diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 9187458..73f7f23 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,33 +2,36 @@ name: run-tests on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: test: runs-on: ${{ matrix.os }} strategy: - fail-fast: false + fail-fast: true matrix: - os: [ ubuntu-latest ] - php: [ 8.2, 8.1 ] - laravel: [ 9.*, 10.* ] - stability: [ prefer-lowest, prefer-stable ] + os: [ubuntu-latest] + php: [8.3, 8.2, 8.1] + laravel: ["^11.0", "^10.0", "^9.38"] + stability: [prefer-lowest, prefer-stable] include: - - laravel: 9.* - testbench: 7.* - carbon: ^2.63 - - laravel: 10.* + - laravel: "^11.0" + testbench: 9.* + - laravel: "^10.0" testbench: 8.* - carbon: ^2.63 + - laravel: "^9.38" + testbench: 7.* + exclude: + - laravel: "^11.0" + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -44,11 +47,8 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update - composer update --${{ matrix.stability }} --prefer-dist --no-interaction - - - name: List Installed Dependencies - run: composer show -D + composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update + composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }} - name: Execute tests run: vendor/bin/pest diff --git a/composer.json b/composer.json index 9bffed3..3218f13 100644 --- a/composer.json +++ b/composer.json @@ -17,22 +17,21 @@ ], "require": { "php": "^8.1", - "illuminate/contracts": "^9.38|^10.0", + "illuminate/contracts": "^9.38|^10.0|^11.0", "spatie/laravel-package-tools": "^1.14.0", - "symfony/mailer": "^6.0" + "symfony/mailer": "^6.0|^7.0" }, "require-dev": { "guzzlehttp/guzzle": "^7.5", "laravel/pint": "^1.0", - "nunomaduro/collision": "^6.0", + "nunomaduro/collision": "^6.0|^7.0|^8.0", "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^7.0|^8.0", - "pestphp/pest": "^1.21", - "pestphp/pest-plugin-laravel": "^1.1", + "orchestra/testbench": "^7.0|^8.0|^9.0", + "pestphp/pest": "^1.21|^2.0", + "pestphp/pest-plugin-laravel": "^1.21|^2.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5", "spatie/laravel-ray": "^1.26" }, "autoload": {