mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
phpstan: Streamline vendor file location with local dev-env
phpstan is not run with an action anymore, as the action runs it its own docker container and hence has no access to files outside the repository root. A side-effect of this is, that phpstan now **really** runs with the php version set up by the matrix.
This commit is contained in:
parent
cd2daeb2cb
commit
b270161455
14
.github/workflows/php.yml
vendored
14
.github/workflows/php.yml
vendored
@ -33,12 +33,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup dependencies
|
- name: Setup dependencies
|
||||||
run: |
|
run: |
|
||||||
composer require -n --no-progress overtrue/phplint
|
composer require -n --no-progress overtrue/phplint phpstan/phpstan
|
||||||
git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git vendor/icinga-php-library
|
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git /usr/share/icinga-php/ipl
|
||||||
git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git vendor/icinga-php-thirdparty
|
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git /usr/share/icinga-php/vendor
|
||||||
git clone --depth 1 https://github.com/Icinga/icingaweb2-module-x509.git vendor/modules/x509-web
|
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-x509.git /usr/share/icingaweb2-modules/x509
|
||||||
git clone --depth 1 https://github.com/Icinga/icingadb-web.git vendor/modules/icingadb-web
|
sudo git clone --depth 1 https://github.com/Icinga/icingadb-web.git /usr/share/icingaweb2-modules/icingadb
|
||||||
git clone --depth 1 https://github.com/Icinga/icingaweb2-module-pdfexport.git vendor/modules/pdfexport-web
|
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-pdfexport.git /usr/share/icingaweb2-modules/pdfexport
|
||||||
|
|
||||||
- name: PHP Lint
|
- name: PHP Lint
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
@ -50,7 +50,7 @@ jobs:
|
|||||||
|
|
||||||
- name: PHPStan
|
- name: PHPStan
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
uses: php-actions/phpstan@v3
|
run: ./vendor/bin/phpstan analyse
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
|
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
|
||||||
|
@ -52,7 +52,8 @@ parameters:
|
|||||||
- '#Call to an undefined method ipl\\Sql\\Connection::exec\(\)#'
|
- '#Call to an undefined method ipl\\Sql\\Connection::exec\(\)#'
|
||||||
|
|
||||||
scanDirectories:
|
scanDirectories:
|
||||||
- vendor
|
- /usr/share/icinga-php
|
||||||
|
- /usr/share/icingaweb2-modules
|
||||||
|
|
||||||
excludePaths:
|
excludePaths:
|
||||||
- library/Icinga/Test
|
- library/Icinga/Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user