From 71adf377621a6c03021fae6fe0af55fd5372b62d Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 3 Jun 2026 23:36:04 +0000 Subject: [PATCH] ci: add PHPUnit pipeline (#65) Neue Gitea-CI-Pipeline analog zur bestehenden lint.yml: - Trigger auf push und pull_request - Installiert PHP + Composer + Extensions (xml, mbstring) - Fuehrt 'composer install' und 'vendor/bin/phpunit' aus - 18 Tests / 31 Assertions gruen --- .gitea/workflows/phpunit.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/phpunit.yml diff --git a/.gitea/workflows/phpunit.yml b/.gitea/workflows/phpunit.yml new file mode 100644 index 0000000..9f10d1b --- /dev/null +++ b/.gitea/workflows/phpunit.yml @@ -0,0 +1,25 @@ +name: PHPUnit + +on: + push: + pull_request: + +jobs: + phpunit: + name: PHP Unit Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install PHP & Composer + run: | + apt-get update -qq + apt-get install -y -qq php-cli php-xml php-mbstring composer > /dev/null 2>&1 + php --version + composer --version + + - name: Install dependencies + run: composer install --no-interaction --prefer-dist --no-progress + + - name: Run PHPUnit + run: vendor/bin/phpunit -- 2.49.1