diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d7913f3..4508876 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -6,6 +6,52 @@ on: workflow_dispatch: jobs: + tests-on-laravel-11: + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + matrix: + os: + - "ubuntu-latest" + php: + - 8.2 + - 8.3 + dependencies: + - "highest" + laravel: + - "11.x" + experimental: + - false + + name: Laravel ${{ matrix.laravel }} on PHP${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }}) + + 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, sqlite3, pdo_sqlite, bcmath, fileinfo + coverage: none + + - name: "Setup CI Authentication" + run: | + composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }} + + - name: Install dependencies + uses: "ramsey/composer-install@v3" + with: + dependency-versions: "${{ matrix.dependencies }}" + composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}" + + - name: Installed dependencies + run: composer show -D + + - name: Execute tests + run: vendor/bin/phpunit --testdox + tests-on-laravel-10: runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} @@ -41,15 +87,11 @@ jobs: run: | composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }} - - name: Install Laravel Framework ${{ matrix.laravel }} - run: | - composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update - - name: Install dependencies uses: "ramsey/composer-install@v3" with: dependency-versions: "${{ matrix.dependencies }}" - composer-options: "--prefer-dist --no-cache" + composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}" - name: Installed dependencies run: composer show -D @@ -92,15 +134,11 @@ jobs: run: | composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }} - - name: Install Laravel Framework ${{ matrix.laravel }} - run: | - composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update - - name: Install dependencies uses: "ramsey/composer-install@v3" with: dependency-versions: "${{ matrix.dependencies }}" - composer-options: "--prefer-dist --no-cache" + composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}" - name: Installed dependencies run: composer show -D diff --git a/composer.json b/composer.json index 3fc6f38..9bf4dc7 100644 --- a/composer.json +++ b/composer.json @@ -25,16 +25,16 @@ "require": { "php": "^7.3 || ^8.0", "composer-runtime-api": "^2.2", - "illuminate/support": "^8.83.4 || ^9.51 || ^10.0", + "illuminate/support": "^8.83.4 || ^9.51 || ^10.0 || ^11.0", "laravie/serialize-queries": "^2.0 || ^3.0", "laravel/serializable-closure": "^1.0" }, "require-dev": { "guzzlehttp/guzzle": "^7.2", "larastan/larastan": "^2.4", - "laravel/nova": "^4.14", - "orchestra/testbench": "^7.30 || ^8.10", - "phpunit/phpunit": "^9.6", + "laravel/nova": "*", + "orchestra/testbench": "^7.30 || ^8.19 || ^9.0", + "phpunit/phpunit": "^9.6 || ^10.1", "nova-kit/nova-devtool": "^1.2.1" }, "repositories": [