Skip to content

Update README.md

Update README.md #59

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
name: "PHP ${{ matrix.php }} ${{ matrix.opcache && '(opcache)' || '' }}"
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4', '8.5']
opcache: [false, true]
exclude:
- php: '8.5'
opcache: true
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
ini-values: "session.save_path=/tmp"
extensions: xmlreader
- name: Compile
run: |
phpize
./configure --enable-php-debugger
make -j$(nproc)
- name: Find PHP
run: |
TEST_PHP_EXECUTABLE=$(make findphp)
echo "Found PHP in: $TEST_PHP_EXECUTABLE"
echo "TEST_PHP_EXECUTABLE=$TEST_PHP_EXECUTABLE" >> $GITHUB_ENV
- name: Define PHP arguments
run: |
TEST_PHP_ARGS="-n -d session.save_path=/tmp"
if [[ "${{ matrix.opcache }}" == "true" ]]; then
TEST_PHP_ARGS="$TEST_PHP_ARGS -d zend_extension=opcache.so -d opcache.enable=1 -d opcache.enable_cli=1"
fi
TEST_PHP_ARGS="$TEST_PHP_ARGS -d zend_extension=$PWD/modules/php_debugger.so"
echo "Test PHP arguments: $TEST_PHP_ARGS"
echo "TEST_PHP_ARGS=$TEST_PHP_ARGS" >> $GITHUB_ENV
- name: Run debugger tests
run: |
$TEST_PHP_EXECUTABLE $TEST_PHP_ARGS -v
$TEST_PHP_EXECUTABLE -n run-xdebug-tests.php -j$(nproc) -q -x --show-diff tests/debugger/
- name: Show errors
if: failure()
run: |
for f in tests/debugger/*.diff; do
if [ -f "$f" ]; then
echo "=== $f ==="
cat "$f"
echo
fi
done