Skip to content

Commit

Permalink
phpstan: Streamline vendor file location with local dev-env
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sukhwinder33445 committed Jan 25, 2024
1 parent c57458a commit 242d26a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:

- name: Setup dependencies
run: |
composer require -n --no-progress overtrue/phplint
git clone --depth 1 https://github.com/Icinga/icingaweb2.git vendor/icingaweb2
composer require -n --no-progress overtrue/phplint phpstan/phpstan
&& sudo git clone --depth 1 https://github.com/Icinga/icingaweb2.git /icingaweb2
- name: PHP Lint
if: ${{ ! cancelled() }}
Expand All @@ -45,7 +45,7 @@ jobs:

- name: PHPStan
if: ${{ ! cancelled() }}
uses: php-actions/phpstan@v3
run: ./vendor/bin/phpstan analyse

test:
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ parameters:
- src

scanDirectories:
- vendor
- /icingaweb2

ignoreErrors:
-
Expand Down

0 comments on commit 242d26a

Please sign in to comment.