diff --git a/.github/workflows/run-tests-old.yml b/.github/workflows/run-tests-old.yml deleted file mode 100644 index 137c0f2..0000000 --- a/.github/workflows/run-tests-old.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: run-tests-old - -on: [push, pull_request] - -jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: true - matrix: - os: [ubuntu-latest] - php: [7.4, 8.0] - laravel: [8.*] - dependency-version: [prefer-stable] - include: - - laravel: 8.* - testbench: 6.* - - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - 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, fileinfo - coverage: none - - - name: Install dependencies - run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}" - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - env: - COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} - - - name: Execute tests - run: vendor/bin/phpunit diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index bd6e145..91902c0 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,14 +9,24 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.0, 8.1] - laravel: [9.*] + php: [8.1, 8.2] + laravel: [9.*, 10.*] dependency-version: [prefer-stable] + testbench: [7.*, 8.*] include: - laravel: 9.* testbench: 7.* + php: 8.1 + - laravel: 10.* + testbench: 8.* + php: 8.2 + exclude: + - laravel: 9.* + testbench: 8.* + - laravel: 10.* + testbench: 7.* - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - T${{ matrix.testbench }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} steps: - name: Checkout code diff --git a/composer.json b/composer.json index d269c63..671ea1c 100644 --- a/composer.json +++ b/composer.json @@ -14,10 +14,11 @@ } ], "require": { - "php": ">=7.4||^8.0.2", - "illuminate/http": "^8.0||^9.0", - "illuminate/support": "^8.0||^9.0", - "laravel/nova": "^3.0" + "php": "^8.0.2", + "illuminate/http": "^9.0||^10.0", + "illuminate/support": "^9.0||^10.0", + "laravel/nova": "^3.0||^4.0", + "cakephp/chronos": "^2.0" }, "autoload": { "psr-4": { @@ -30,7 +31,8 @@ } }, "require-dev": { - "orchestra/testbench": "^6.0||^7.0" + "phpunit/phpunit": "^9.0", + "orchestra/testbench": "^7.0||^8.0" }, "minimum-stability": "dev", "prefer-stable": true,