mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
phpstan: Streamline vendor file location with local dev-env
- Remove superfluous dir and composer requires
This commit is contained in:
parent
aa31b37fd1
commit
2aa4a21e5e
15
.github/workflows/php.yml
vendored
15
.github/workflows/php.yml
vendored
@ -32,15 +32,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup dependencies
|
- name: Setup dependencies
|
||||||
run: |
|
run: |
|
||||||
composer require -n --no-progress overtrue/phplint phpunit/phpunit ipl/stdlib:@dev ipl/html:@dev
|
composer require -n --no-progress overtrue/phplint phpunit/phpunit phpstan/phpstan
|
||||||
git clone --depth 1 https://github.com/Icinga/icingaweb2.git vendor/icingaweb2
|
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2.git /icingaweb2
|
||||||
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-cube.git vendor/cube
|
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git /usr/share/icinga-php/ipl
|
||||||
|
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-cube.git /usr/share/icingaweb2-modules/cube
|
||||||
|
|
||||||
- name: Setup Incubator
|
- name: Setup Incubator
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://github.com/Icinga/icingaweb2-module-incubator vendor/incubator
|
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-incubator /usr/share/icingaweb2-modules/incubator
|
||||||
cd vendor/incubator
|
cd /usr/share/icingaweb2-modules/incubator
|
||||||
composer require --no-update \
|
composer require --no-update \
|
||||||
"gipfl/calendar": "dev-master as 99.x-dev" \
|
"gipfl/calendar": "dev-master as 99.x-dev" \
|
||||||
"gipfl/cli": "dev-master as 99.x-dev" \
|
"gipfl/cli": "dev-master as 99.x-dev" \
|
||||||
@ -82,7 +83,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 }}
|
||||||
|
@ -17,8 +17,11 @@ parameters:
|
|||||||
- '#. but return statement is missing#'
|
- '#. but return statement is missing#'
|
||||||
|
|
||||||
scanDirectories:
|
scanDirectories:
|
||||||
- vendor
|
- /icingaweb2
|
||||||
- library/Director/Test
|
- /usr/share/icinga-php
|
||||||
|
- /usr/share/icingaweb2-modules/incubator
|
||||||
|
- /usr/share/icingaweb2-modules/cube
|
||||||
|
|
||||||
excludePaths:
|
excludePaths:
|
||||||
- library/Director/CoreBeta
|
- library/Director/CoreBeta
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user