From 66e55f1e20383a0c39a3737b33e2714d6ae0c236 Mon Sep 17 00:00:00 2001 From: SadElephant Date: Fri, 24 Feb 2023 20:05:04 +0300 Subject: [PATCH] added phpunit 10 --- .github/workflows/phpunit.yml | 10 ++++----- composer.json | 6 +++--- phpunit.xml | 38 +++++++---------------------------- 3 files changed, 15 insertions(+), 39 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index fd5d85d..a8707e7 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -8,13 +8,13 @@ jobs: strategy: fail-fast: false matrix: - php: [ 8.1, 8.0 ] + php: [ 8.2, 8.1] os: [ ubuntu-latest, windows-latest ] - laravel: [ 9.* ] + laravel: [ 10.* ] dependency-version: [ prefer-lowest, prefer-stable ] include: - - laravel: 9.* - testbench: 7.* + - laravel: 10.* + testbench: 8.* name: P${{ matrix.php }} - ${{ matrix.os }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} @@ -41,4 +41,4 @@ jobs: 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 (Unit and Feature tests) via PHPUnit 🧪 - run: vendor/bin/phpunit --verbose + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 8f22756..b443424 100644 --- a/composer.json +++ b/composer.json @@ -14,13 +14,13 @@ } ], "require": { - "php": "^8.0", - "illuminate/support": "^9.0", + "php": "^8.1", + "illuminate/support": "^9.0|^10.0", "brick/math": "^0.9.3" }, "require-dev": { "phpstan/phpstan": "^1.4", - "phpunit/phpunit": "^9.5.14", + "phpunit/phpunit": "^9.5.14|^10", "symfony/var-dumper": "^6.0" }, "autoload-dev": { diff --git a/phpunit.xml b/phpunit.xml index e5bbca0..12aa971 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,33 +1,9 @@ - - - - ./src - - - ./src/ - - - - - - - - ./tests - - - + + + + ./tests + + +