Skip to content

Commit 3b05e67

Browse files
committed
Try to successfully run tests on PHP >= 8.2.0
1 parent 01bdc5e commit 3b05e67

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
shell: cmd
3636
strategy:
3737
matrix:
38-
version: ["7.4", "8.0", "8.1", "8.2", "8.3"]
39-
arch: [x64, x86]
38+
version: ["8.2", "8.3"]
39+
arch: [x64]
4040
ts: [ts]
4141
runs-on: windows-2019
4242
steps:
@@ -59,8 +59,18 @@ jobs:
5959
- name: phpize
6060
run: phpize
6161
- name: configure
62-
run: configure --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}}
62+
run: configure --enable-test-ini --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}}
6363
- name: make
6464
run: nmake
65+
- name: patch test ini
66+
run: |
67+
if ("${{matrix.arch}}"=="x64") (
68+
set my_ini_file=x64\Release_TS\tmp-php.ini
69+
) else (
70+
set my_ini_file=Release_TS\tmp-php.ini
71+
)
72+
set mbstring=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll
73+
sed -i "1s/^/extension=%mbstring:\=\\\%\n/" %my_ini_file%
74+
type %my_ini_file%
6575
- name: test
66-
run: nmake test TESTS="-d extension=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll --show-diff tests"
76+
run: nmake test TESTS="--show-diff tests"

0 commit comments

Comments
 (0)