From 56d0b941e8bb800c2d9c922e3f8c56a7d6fc4dc0 Mon Sep 17 00:00:00 2001 From: Imugiii Date: Mon, 15 Jun 2026 14:18:10 +0000 Subject: [PATCH] ci: install php-xml/php-mbstring for phpunit/phpstan (bookworm php-cli lacks dom/mbstring/xml) --- .forgejo/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index f16db0c..8b5bef4 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: exit 0 fi echo "phpstan.neon detected - running PHPStan ${PHPSTAN_VERSION} via .phar" - apt-get update -qq && apt-get install -y -qq php-cli curl ca-certificates >/dev/null + apt-get update -qq && apt-get install -y -qq php-cli php-xml php-mbstring curl ca-certificates >/dev/null # PHPUnit phar present pour que phpstan.neon (scanDirectories phar://phpunit.phar) # resolve les symboles PHPUnit\Framework\* utilises sous tests/. curl -sSL "https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar" -o phpunit.phar @@ -90,7 +90,7 @@ jobs: exit 0 fi echo "phpunit.xml + tests/ detected - running PHPUnit ${PHPUNIT_VERSION} via .phar" - apt-get update -qq && apt-get install -y -qq php-cli curl ca-certificates >/dev/null + apt-get update -qq && apt-get install -y -qq php-cli php-xml php-mbstring curl ca-certificates >/dev/null curl -sSL "https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar" -o phpunit.phar php phpunit.phar --version php phpunit.phar -c phpunit.xml