Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/closePullRequestWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ jobs:
extensions: dom, curl, libxml, mbstring, pdo_sqlite, gettext # Inclusa gettext per dgettext()
coverage: xdebug

# Installa le dipendenze direttamente nell'ambiente configurato
# Installa le dipendenze (incluso PHPUnit)
- name: Install Dependencies
run: composer install --prefer-dist --no-progress
run: |
composer require --dev phpunit/phpunit:"^11.3" --no-progress --prefer-dist
composer install --prefer-dist --no-progress

# Lancia PHPUnit nativo usando la tua configurazione in test/phpunit.xml
# Nota: Rimuoviamo l'argomento bootstrap da qui perché ci pensa già il tuo xml (bootstrap="bootstrap.php")
# Esegui i test chiamando direttamente phpunit tramite composer (più sicuro sui percorsi)
- name: Run PHPUnit Tests
run: vendor/bin/phpunit --configuration test/phpunit.xml --coverage-clover test/coverage.xml
run: composer exec phpunit -- --configuration test/phpunit.xml --coverage-clover test/coverage.xml

# Avvia lo scan di SonarCloud leggendo la coverage generata
- name: SonarCloud Scan
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pushWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
extensions: dom, curl, libxml, mbstring, pdo_sqlite, gettext # Inclusa gettext per dgettext()
coverage: xdebug

# Installa le dipendenze (incluso PHPUnit)
# Installa le dipendenze (incluso PHPUnit)
- name: Install Dependencies
run: |
composer require --dev phpunit/phpunit:"^11.3" --no-progress --prefer-dist
Expand Down
Loading