From e18493897f13b9d3da1b68fdccc36800daf98a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 21 Sep 2024 13:35:45 +0200 Subject: [PATCH] add unittests for php 8.1 - 8.3 --- .forgejo/workflows/phpunit.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/phpunit.yml b/.forgejo/workflows/phpunit.yml index 2e3d1b7..cf444ea 100644 --- a/.forgejo/workflows/phpunit.yml +++ b/.forgejo/workflows/phpunit.yml @@ -19,7 +19,7 @@ jobs: MYSQL_ROOT_PASSWORD: root strategy: matrix: - php-versions: ['8.1'] + php-versions: ['8.1', '8.2', '8.3'] name: Run phpunit tests env: extensions: mysql @@ -42,7 +42,7 @@ jobs: uses: https://code.forgejo.org/actions/cache@v4 with: path: | - ./vendor/ + ./vendor/install key: cache-composer-phpunit-1 - name: Setup PHP @@ -54,9 +54,8 @@ jobs: env: runner: self-hosted - - name: Install PHP Unit + - name: Install PHPUnit and PHPUnit-Polyfills if: steps.cache-composer-phpunit.outputs.cache-hit != 'true' - # Polyfills requires all needed packages including phpunit itself. run: composer require --dev yoast/phpunit-polyfills:"^3.0" - name: Install and cache mysqladmin needed to initialize the test database