diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index f18eab3..f85735f 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -8,6 +8,7 @@ on: pull_request: branches: - main + - release/* jobs: lint: @@ -40,3 +41,17 @@ jobs: - name: PHP CodeSniffer if: success() || matrix.allow_failure run: phpcs -wps --colors + + - name: Setup Libraries + run: | + mkdir -p _libraries + git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git _libraries/ipl + git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git _libraries/vendor + git clone --depth 1 https://github.com/Icinga/icingaweb2.git _icingaweb2 + git clone --depth 1 https://github.com/Icinga/icingadb-web.git _icingaweb2/modules/icingadb + ln -s `pwd` _icingaweb2/modules/toplevelview + + - name: PHPUnit + env: + ICINGAWEB_LIBDIR: _libraries/ + run: phpunit --verbose