From d13990471496213b1f8dedab933d96ad32de8101 Mon Sep 17 00:00:00 2001 From: Hooman Mirghasemi Date: Sun, 2 Jun 2024 19:35:01 +0330 Subject: [PATCH 1/7] change composer and tests for laravel 11 --- .github/workflows/tests.yml | 16 +++++++++++++--- composer.json | 4 ++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 309d4c0..fb5b0ef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,16 +8,26 @@ on: jobs: tests: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: true matrix: - php: ['8.0', 8.1, 8.2] - laravel: [9, 10] + php: ['8.0', 8.1, 8.2, 8.3] + laravel: [8, 9, 10, 11] exclude: - php: '8.0' laravel: 10 + - php: '8.0' + laravel: 11 + - php: 8.1 + laravel: 11 + - php: 8.2 + laravel: 8 + - php: 8.3 + laravel: 8 + - php: 8.3 + laravel: 9 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} diff --git a/composer.json b/composer.json index 06f063f..07a31e3 100644 --- a/composer.json +++ b/composer.json @@ -27,11 +27,11 @@ "php": "^8.0.2", "kavenegar/laravel": "*", "doctrine/dbal": "3.6.5", - "laravel/framework": "^7.0|^8.0|^9.0|^10.0" + "laravel/framework": "^7.0|^8.0|^9.0|^10.0|^11.0" }, "require-dev": { "phpunit/phpunit": "^9.6", - "orchestra/testbench": "^7.28.2|^8.8.3", + "orchestra/testbench": "^7.28.2|^8.8.3|^9.1.1", "laravel/legacy-factories": "^1.3" }, "minimum-stability": "stable", From 11f30344b1532fdb812acd4cf75212e9e6e69e8e Mon Sep 17 00:00:00 2001 From: Hooman Mirghasemi Date: Sun, 2 Jun 2024 19:57:52 +0330 Subject: [PATCH 2/7] change composer and tests for laravel 11 --- .github/workflows/tests.yml | 2 +- composer.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fb5b0ef..025e6de 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ on: jobs: tests: - runs-on: ubuntu-24.04 + runs-on: ubuntu-22.04 strategy: fail-fast: true diff --git a/composer.json b/composer.json index 07a31e3..f45c24a 100644 --- a/composer.json +++ b/composer.json @@ -26,12 +26,11 @@ "require": { "php": "^8.0.2", "kavenegar/laravel": "*", - "doctrine/dbal": "3.6.5", "laravel/framework": "^7.0|^8.0|^9.0|^10.0|^11.0" }, "require-dev": { "phpunit/phpunit": "^9.6", - "orchestra/testbench": "^7.28.2|^8.8.3|^9.1.1", + "orchestra/testbench": "^6.40|^7.37|^8.17|^9.0", "laravel/legacy-factories": "^1.3" }, "minimum-stability": "stable", From efa7230478208b8fc1383d7611ee964b59cdeb1a Mon Sep 17 00:00:00 2001 From: Hooman Mirghasemi Date: Sun, 2 Jun 2024 20:12:25 +0330 Subject: [PATCH 3/7] update legacy-factories --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f45c24a..71fcb23 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "require-dev": { "phpunit/phpunit": "^9.6", "orchestra/testbench": "^6.40|^7.37|^8.17|^9.0", - "laravel/legacy-factories": "^1.3" + "laravel/legacy-factories": "^1.4" }, "minimum-stability": "stable", "scripts": { From 0adee4c65da0eece75513e5d23a80e0d4551f4ca Mon Sep 17 00:00:00 2001 From: Hooman Mirghasemi Date: Sun, 2 Jun 2024 20:16:30 +0330 Subject: [PATCH 4/7] Test upgade php unite --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 71fcb23..1b64617 100644 --- a/composer.json +++ b/composer.json @@ -26,10 +26,10 @@ "require": { "php": "^8.0.2", "kavenegar/laravel": "*", - "laravel/framework": "^7.0|^8.0|^9.0|^10.0|^11.0" + "laravel/framework": "^8.0|^9.0|^10.0|^11.0" }, "require-dev": { - "phpunit/phpunit": "^9.6", + "phpunit/phpunit": "^9.0|^10.5", "orchestra/testbench": "^6.40|^7.37|^8.17|^9.0", "laravel/legacy-factories": "^1.4" }, From 870660e11d754f12d053bb454ab3f19a452563df Mon Sep 17 00:00:00 2001 From: Hooman Mirghasemi Date: Sun, 2 Jun 2024 20:23:42 +0330 Subject: [PATCH 5/7] Adaptive runing test command with phpunite 10 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 025e6de..b99889d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,4 +50,4 @@ jobs: composer update --prefer-dist --no-interaction --no-progress - name: Execute tests - run: vendor/bin/phpunit --verbose \ No newline at end of file + run: vendor/bin/phpunit \ No newline at end of file From e01c1690ff498b4490de4e7d80ed9c823b18569a Mon Sep 17 00:00:00 2001 From: Hooman Mirghasemi Date: Sun, 2 Jun 2024 20:28:30 +0330 Subject: [PATCH 6/7] Update readme file for laravel support version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d6f226..7c7af8c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ [![Maintainability](https://api.codeclimate.com/v1/badges/9e2415e0cfcfe2120a9e/maintainability)](https://codeclimate.com/github/hooman-mirghasemi/Laravel-iran-sms/maintainability) [![Quality Score][ico-code-quality]][link-code-quality] -This is a Laravel Package for Sms Senders Integration. This package supports `Laravel 9+` But it may work with laravel 8 or 7 (not tested). +This is a Laravel Package for Sms Senders Integration. This package supports `Laravel 8+`. > Benefits of this package: > - Multiple drivers From b7b55b5b72a059264aff380a974ed3784a503055 Mon Sep 17 00:00:00 2001 From: Hooman Mirghasemi Date: Sun, 2 Jun 2024 20:28:39 +0330 Subject: [PATCH 7/7] Update readme file for laravel support version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c7af8c..c579d0d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ [![Maintainability](https://api.codeclimate.com/v1/badges/9e2415e0cfcfe2120a9e/maintainability)](https://codeclimate.com/github/hooman-mirghasemi/Laravel-iran-sms/maintainability) [![Quality Score][ico-code-quality]][link-code-quality] -This is a Laravel Package for Sms Senders Integration. This package supports `Laravel 8+`. +This is a Laravel Package for Sms Senders Integration. This package supports `Laravel 8+`, all tests passed for laravel 8, 9, 10 and 11! > Benefits of this package: > - Multiple drivers