From ea0bed3996113232239befd7fa25975ce180dcd7 Mon Sep 17 00:00:00 2001 From: mesilov Date: Thu, 4 Jan 2024 00:21:32 +0600 Subject: [PATCH 1/5] add windows platforms in unit-tests Signed-off-by: mesilov --- .github/workflows/phpunit.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index e1512640..713330af 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -11,14 +11,15 @@ jobs: tests: name: "PHPUnit tests" - runs-on: ubuntu-latest + runs-on: ${{ matrix.operating-system }} + strategy: matrix: php-version: - - "8.1" - - "8.2" + - "8.3" dependencies: [ highest ] + operating-system: [ ubuntu-latest, windows-latest ] steps: - name: "Checkout" From e220737930c0933c7e3a84427977b434575a673f Mon Sep 17 00:00:00 2001 From: mesilov Date: Thu, 4 Jan 2024 00:24:17 +0600 Subject: [PATCH 2/5] bump php version requirements Signed-off-by: mesilov --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e2dc8095..084b2a9d 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ } ], "require": { - "php": "8.1.* || 8.2.*", + "php": "8.1.* || 8.2.* || 8.3.*", "ext-json": "*", "ext-bcmath": "*", "ext-curl": "*", From e52866c54866bea88677598002cc1980c98d740e Mon Sep 17 00:00:00 2001 From: mesilov Date: Thu, 4 Jan 2024 00:34:57 +0600 Subject: [PATCH 3/5] add extensions Signed-off-by: mesilov --- .github/workflows/phpunit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 713330af..f64d078b 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -30,6 +30,7 @@ jobs: with: coverage: "none" php-version: "${{ matrix.php-version }}" + extensions: json, bcmath, curl - name: "Install dependencies" run: | From 2fb317b1a813691aa58ab830ce38bf1ece000ade Mon Sep 17 00:00:00 2001 From: mesilov Date: Thu, 4 Jan 2024 00:37:46 +0600 Subject: [PATCH 4/5] add extension intl Signed-off-by: mesilov --- .github/workflows/phpunit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index f64d078b..83c2d3c1 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -30,7 +30,7 @@ jobs: with: coverage: "none" php-version: "${{ matrix.php-version }}" - extensions: json, bcmath, curl + extensions: json, bcmath, curl, intl - name: "Install dependencies" run: | From 1a4278e98b4773e631ce92be8bdff47811aac7a0 Mon Sep 17 00:00:00 2001 From: mesilov Date: Thu, 4 Jan 2024 00:42:35 +0600 Subject: [PATCH 5/5] fix workflows Signed-off-by: mesilov --- .github/workflows/phpstan.yml | 5 ++--- .github/workflows/phpunit.yml | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 068e9864..70847366 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -13,8 +13,7 @@ jobs: fail-fast: false matrix: php-version: - - "8.1" - - "8.2" + - "8.3" dependencies: [ highest ] steps: @@ -26,7 +25,7 @@ jobs: with: coverage: "none" php-version: "${{ matrix.php-version }}" - extensions: mbstring + extensions: json, bcmath, curl, intl, mbstring tools: composer:v2 - name: "Install lowest dependencies" diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 83c2d3c1..f1244128 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -13,10 +13,11 @@ jobs: runs-on: ${{ matrix.operating-system }} - strategy: matrix: php-version: + - "8.1" + - "8.2" - "8.3" dependencies: [ highest ] operating-system: [ ubuntu-latest, windows-latest ] @@ -30,7 +31,7 @@ jobs: with: coverage: "none" php-version: "${{ matrix.php-version }}" - extensions: json, bcmath, curl, intl + extensions: json, bcmath, curl, intl, mbstring - name: "Install dependencies" run: |