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 authored and nilmerg committed Apr 8, 2024
1 parent 41090b9 commit e37157f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
tools: phpcs

- name: Setup dependencies
run: composer require -n --no-progress overtrue/phplint
run: composer require -n --no-progress overtrue/phplint phpstan/phpstan

- name: PHP Lint
if: ${{ ! cancelled() }}
Expand All @@ -43,7 +43,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
3 changes: 0 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ parameters:

paths:
- src

scanDirectories:
- vendor

0 comments on commit e37157f

Please sign in to comment.