Skip to content

Enable debug profiling. #38

Enable debug profiling.

Enable debug profiling. #38

Workflow file for this run

name: Run PhpUnit tests
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up php
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extentions: xdebug, zlib
tools: composer:v2
- name: Checkout
uses: actions/checkout@v4
- name: Composer install
uses: ./.github/actions/composer-install
- name: Run PhpUnit tests
run: |
mkdir -p ${{ runner.temp }}/xdebug/output
php -d xdebug.mode=profile -d xdebug.output_dir=${{ runner.temp }}/xdebug/output ./vendor/bin/phpunit tests
- name: Upload xdebug profile
uses: actions/upload-artifact@v4
with:
name: xdebug-profile
path: ${{ runner.temp }}/xdebug/output
retention-days: 1