From c6d4bf502014d30676c6510244f7362ffd88f56e Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Fri, 23 Jun 2023 14:13:12 +0200 Subject: [PATCH] Update php test workflow Since the vendor libraries are moved to `icinga-php-thirdparty`. The php test workflow needs to be updated, so that these libraries could be found during the test run. --- .github/workflows/php.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 00c64a228..bde75ce13 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -99,10 +99,13 @@ jobs: extensions: mysql, pgsql, ldap - name: Setup dependencies - run: composer require -n --no-progress mockery/mockery ipl/i18n:@dev + run: | + composer require -n --no-progress mockery/mockery ipl/i18n:@dev + git clone --depth 1 --branch snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git vendor/icinga-php-thirdparty - name: PHPUnit env: ICINGAWEB_TEST_MYSQL_PORT: ${{ job.services.mysql.ports['3306'] }} ICINGAWEB_TEST_PGSQL_PORT: ${{ job.services.pgsql.ports['5432'] }} + ICINGAWEB_LIBDIR: vendor/ run: phpunit -c modules/test/phpunit.xml --verbose