Skip to content

Commit

Permalink
Try to successfully run tests on PHP >= 8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jul 22, 2024
1 parent 01bdc5e commit 3b05e67
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
shell: cmd
strategy:
matrix:
version: ["7.4", "8.0", "8.1", "8.2", "8.3"]
arch: [x64, x86]
version: ["8.2", "8.3"]
arch: [x64]
ts: [ts]
runs-on: windows-2019
steps:
Expand All @@ -59,8 +59,18 @@ jobs:
- name: phpize
run: phpize
- name: configure
run: configure --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}}
run: configure --enable-test-ini --enable-mailparse --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: patch test ini
run: |
if ("${{matrix.arch}}"=="x64") (
set my_ini_file=x64\Release_TS\tmp-php.ini
) else (
set my_ini_file=Release_TS\tmp-php.ini
)
set mbstring=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll
sed -i "1s/^/extension=%mbstring:\=\\\%\n/" %my_ini_file%
type %my_ini_file%
- name: test
run: nmake test TESTS="-d extension=${{steps.setup-php.outputs.prefix}}\ext\php_mbstring.dll --show-diff tests"
run: nmake test TESTS="--show-diff tests"

0 comments on commit 3b05e67

Please sign in to comment.