diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 69c5113..b44dc00 100755 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,20 +9,20 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.1, 8.0] - laravel: [8.*,9.*] + php: [8.2, 8.1, 8.0] + laravel: [8.*,9.*,10.*] dependency-version: [prefer-lowest, prefer-stable] include: - laravel: 8.* testbench: ^6.23 - laravel: 9.* testbench: 7.* + - laravel: 10.* + testbench: 8.* exclude: - - laravel: 9.* - php: 7.3 - - laravel: 9.* - php: 7.4 + - laravel: 10.* + php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} diff --git a/README.md b/README.md index 793a62b..a94e2bc 100644 --- a/README.md +++ b/README.md @@ -57,11 +57,15 @@ composer require hekmatinasser/verta 8.0 - 8.x + 8.0 9.0 - 8.x + 8.2 + + + 10.0 + 8.3 diff --git a/composer.json b/composer.json index 7d092da..67eb2f4 100755 --- a/composer.json +++ b/composer.json @@ -19,12 +19,12 @@ ], "require": { "php": "^8.0", - "illuminate/support": "^8.0|^9.0", - "illuminate/validation": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0|^10.0", + "illuminate/validation": "^8.0|^9.0|^10.0", "hekmatinasser/jalali": "^8.2" }, "require-dev": { - "orchestra/testbench": "^4.18|^5.20|^6.24|^7.0" + "orchestra/testbench": "^6.23|^7.0|^8.0" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 917405f..812fb01 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,5 @@ - + src/ @@ -11,6 +11,6 @@ - + diff --git a/tests/Laravel/JalaliValidatorTest.php b/tests/Laravel/JalaliValidatorTest.php index e9093d0..0864cbc 100644 --- a/tests/Laravel/JalaliValidatorTest.php +++ b/tests/Laravel/JalaliValidatorTest.php @@ -80,7 +80,7 @@ class JalaliValidatorTest extends TestCase /*** * provider for tests */ - public function correctDateFormatProvider() + public static function correctDateFormatProvider() { return [ [ @@ -112,7 +112,7 @@ class JalaliValidatorTest extends TestCase /** * provider for tests */ - public function incorrectDateFormatProvider() + public static function incorrectDateFormatProvider() { return [ [ @@ -133,7 +133,7 @@ class JalaliValidatorTest extends TestCase /** * provider for tests */ - public function jalaliValidatorMethods() + public static function jalaliValidatorMethods() { return [ ["validateDate"],