From 8075b71d943d3f00930db1a5579966e0d57b1c4e Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 20:07:41 +0000 Subject: [PATCH 01/10] Bump dependencies for Laravel 11 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 1eac293..550636a 100644 --- a/composer.json +++ b/composer.json @@ -4,10 +4,10 @@ "type": "library", "require": { "php": "^8.0", - "illuminate/validation": "^8|^9|^10" + "illuminate/validation": "^8|^9|^10|^11.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^9.3|^10.5" }, "autoload": { "psr-4": { From f2b7b4ba927dddb65d0e5d89906e50cb29d0ef24 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 20:07:41 +0000 Subject: [PATCH 02/10] Update GitHub Actions for Laravel 11 --- .github/workflows/run-tests.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0de75f9..06eccbd 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,27 +2,35 @@ name: CI on: push: - branches: [ main ] + branches: + - main pull_request: - branches: [ main ] + branches: + - main jobs: test: runs-on: ubuntu-latest + strategy: fail-fast: true matrix: php: [8.0, 8.1, 8.2] - laravel: [8.*, 9.*, 10.*] + laravel: ['8.*', '9.*', '10.*', '11.*'] include: - laravel: 8.* - laravel: 9.* - laravel: 10.* + - laravel: 11.* exclude: - php: 8.0 laravel: 10.* - php: 8.2 laravel: 8.* + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} From 03e0a2e40776ad86653a93afff5f585bcda2d843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cort=C3=A9s?= Date: Wed, 28 Feb 2024 10:18:59 +0100 Subject: [PATCH 03/10] Update run-tests.yml --- .github/workflows/run-tests.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 06eccbd..ae4a8f6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,20 +15,12 @@ jobs: strategy: fail-fast: true matrix: - php: [8.0, 8.1, 8.2] - laravel: ['8.*', '9.*', '10.*', '11.*'] + php: [8.1, 8.2, 8.3] + laravel: ['10.*', '11.*'] include: - - laravel: 8.* - - laravel: 9.* - laravel: 10.* - laravel: 11.* exclude: - - php: 8.0 - laravel: 10.* - - php: 8.2 - laravel: 8.* - - laravel: 11.* - php: 8.0 - laravel: 11.* php: 8.1 @@ -49,7 +41,7 @@ jobs: composer update --prefer-dist --no-interaction - name: Run PHPUnit - uses: php-actions/phpunit@v9 + uses: php-actions/phpunit@v3 with: configuration: ./phpunit.xml memory_limit: 256M From 393519dd6c8dbbb7a9ae837fb7f6197640d0a306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cort=C3=A9s?= Date: Wed, 28 Feb 2024 10:20:20 +0100 Subject: [PATCH 04/10] Update composer.json --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 550636a..c904f43 100644 --- a/composer.json +++ b/composer.json @@ -3,11 +3,11 @@ "description": "A domain validator rule for Laravel", "type": "library", "require": { - "php": "^8.0", - "illuminate/validation": "^8|^9|^10|^11.0" + "php": "^8.1", + "illuminate/validation": "^10.0|^11.0" }, "require-dev": { - "phpunit/phpunit": "^9.3|^10.5" + "phpunit/phpunit": "^10.0" }, "autoload": { "psr-4": { From 3ff4029d8cbc582d108eee7ff399edccdbe37b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cort=C3=A9s?= Date: Wed, 28 Feb 2024 10:22:37 +0100 Subject: [PATCH 05/10] Update .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 47e1659..e9939b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /.idea /vendor composer.lock -.phpunit.result.cache +/.phpunit.cache From 68a3a30af3233ed44f2e17e94222f997cf45cf2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cort=C3=A9s?= Date: Wed, 28 Feb 2024 10:22:56 +0100 Subject: [PATCH 06/10] Update DomainTest.php --- tests/DomainTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/DomainTest.php b/tests/DomainTest.php index b564688..fa63b77 100644 --- a/tests/DomainTest.php +++ b/tests/DomainTest.php @@ -6,7 +6,7 @@ /** * Class DomainTest */ -class DomainTest extends TestCase +final class DomainTest extends TestCase { /** @var Domain */ private $validator; From f7c9cddca7ee4312a63b707c05812dee4ccea6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cort=C3=A9s?= Date: Wed, 28 Feb 2024 10:26:02 +0100 Subject: [PATCH 07/10] Update run-tests.yml --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ae4a8f6..b6eeb68 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -37,7 +37,7 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/validation:${{ matrix.laravel }}" --no-interaction --no-update + composer require "illuminate/validation:${{ matrix.laravel }}" --no-interaction --no-update --prefer-lowest composer update --prefer-dist --no-interaction - name: Run PHPUnit From 627b61057bea489989bbe160ff36a7e890cf9f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cort=C3=A9s?= Date: Wed, 28 Feb 2024 10:27:20 +0100 Subject: [PATCH 08/10] Update composer.json --- composer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c904f43..1095f0b 100644 --- a/composer.json +++ b/composer.json @@ -20,5 +20,7 @@ "name": "David Cortés", "email": "cortestoledanodavid@gmail.com" } - ] + ], + "minimum-stability": "dev", + "prefer-stable": true } From e248f0ce5ae1a0c38953cb91b9d0e050aa571096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cort=C3=A9s?= Date: Wed, 28 Feb 2024 10:27:32 +0100 Subject: [PATCH 09/10] Update run-tests.yml --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b6eeb68..ae4a8f6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -37,7 +37,7 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/validation:${{ matrix.laravel }}" --no-interaction --no-update --prefer-lowest + composer require "illuminate/validation:${{ matrix.laravel }}" --no-interaction --no-update composer update --prefer-dist --no-interaction - name: Run PHPUnit From e33a3b8598fed7d30aa9fece6dcf9690e1128723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cort=C3=A9s?= Date: Wed, 28 Feb 2024 10:28:59 +0100 Subject: [PATCH 10/10] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 7011bb2..7b22f7b 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ ![GitHub](https://img.shields.io/github/license/dacoto/laravel-domain-validation) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/dacoto/laravel-domain-validation) -A domain validator rule for Laravel 8.x and higher. +A domain validator rule for Laravel 10.x and higher. ## Usage