Skip to content

Commit

Permalink
Enable debug profiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
tasuku43 committed Dec 16, 2024
1 parent 98bf40e commit 943bcbb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ jobs:
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: ./vendor/bin/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
2 changes: 1 addition & 1 deletion tests/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
backupGlobals="false"
colors="true"
beStrictAboutTestsThatDoNotTestAnything="false"
bootstrap="./test/bootstrap.php">
bootstrap="./bootstrap.php">
<testsuites>
<testsuite name="Test Suite">
<directory>.</directory>
Expand Down

0 comments on commit 943bcbb

Please sign in to comment.