diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac8cd3e..2f21128 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,43 +1,48 @@ name: run-tests on: - - push - - pull_request + - push + - pull_request jobs: - test: - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - php: [8.4, 8.3, 8.2] - laravel: [^12.0, ^11.0] - dependency-version: [prefer-lowest, prefer-stable] - include: - - laravel: ^11.0 - testbench: ^9.0 - - laravel: ^12.0 - testbench: ^10.0 - - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - 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 - coverage: none - - - 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 - - - name: Execute tests - run: vendor/bin/phpunit + test: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + php: [8.4, 8.3, 8.2] + laravel: [^11.0, ^12.0, ^13.0] + dependency-version: [prefer-lowest, prefer-stable] + include: + - laravel: ^11.0 + testbench: ^9.0 + - laravel: ^12.0 + testbench: ^10.0 + - laravel: ^13.0 + testbench: ^11.0 + exclude: + - laravel: ^13.0 + php: 8.2 + + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + 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 + coverage: none + + - 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 + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 0987fd8..3304cc2 100644 --- a/composer.json +++ b/composer.json @@ -21,13 +21,13 @@ ], "require": { "php": "^8.0", - "illuminate/http": "^11.0|^12.0", - "illuminate/support": "^11.0|^12.0" + "illuminate/http": "^11.0|^12.0|^13.0", + "illuminate/support": "^11.0|^12.0|^13.0" }, "require-dev": { - "phpunit/phpunit": "^11.0", + "phpunit/phpunit": "^11.0|^12.5.12", "larapack/dd": "^1.0", - "orchestra/testbench": "^9.0|^10.0" + "orchestra/testbench": "^9.0|^10.0|^11.0" }, "autoload": { "psr-4": {