From 6b0a7c537355cd312d809f3cfe24866e40ad5511 Mon Sep 17 00:00:00 2001 From: Victor Malai Date: Fri, 17 Feb 2023 13:53:20 +0200 Subject: [PATCH] feat: laravel10 --- .github/workflows/phpstan.yml | 2 +- .github/workflows/run-tests.yml | 8 ++++---- composer.json | 12 ++++++------ phpunit.xml.dist | 28 ++++------------------------ 4 files changed, 15 insertions(+), 35 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 19d6402..4efa537 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -16,7 +16,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.1' coverage: none - name: Install composer dependencies diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 724401c..551bb65 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,12 +9,12 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.0] - laravel: [9.*] + php: [8.1] + laravel: [^10.0] stability: [prefer-stable] include: - - laravel: 9.* - testbench: 7.* + - laravel: ^10.0 + testbench: ^8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index a66976e..e8b545c 100644 --- a/composer.json +++ b/composer.json @@ -16,18 +16,18 @@ } ], "require": { - "php": "^8.0", - "illuminate/support": "^9.0", + "php": "^8.0|^8.1", + "illuminate/support": "^9.0|^10.0", "laravel/slack-notification-channel": "^2.4", "ext-json": "*" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.2", - "laravel/sanctum": "^2.8", - "orchestra/testbench": "^7.0", - "phpunit/phpunit": "^9.3", + "laravel/sanctum": "^3.2", + "orchestra/testbench": "^8.0", + "phpunit/phpunit": "^10.0", "symfony/stopwatch": "^4.4|^5.0", - "nunomaduro/larastan": "^2.0", + "nunomaduro/larastan": "^2.4", "phpstan/extension-installer": "^1.1" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0a202ed..46a7265 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,31 +1,11 @@ - + stopOnFailure="false"> - + tests - - - ./src - - - - - - - - - -