Skip to content

Commit

Permalink
Add demo script execution under Valgrind in CI workflow
Browse files Browse the repository at this point in the history
Included a step to execute a demo script with Valgrind, enabling thorough memory leak checks and origin tracking. This addition helps in improving the robustness of the code by identifying and addressing potential memory issues early in the development cycle.
  • Loading branch information
koriym committed Nov 4, 2024
1 parent 933f083 commit 9a60866
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/continuous-integration-pecl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ jobs:
make
continue-on-error: true

# Run the demo script
- name: Run demo script
run: |
# Running demo script under Valgrind
valgrind \
--leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
php -n \
-d extension=./ext-rayaop/modules/rayaop.so \
demo/05-pecl.php
# Combined step for PHPUnit and Valgrind analysis
- name: Run Tests with Valgrind
if: success() || failure()
Expand Down

0 comments on commit 9a60866

Please sign in to comment.