mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
23
.github/workflows/phpstan.yml
vendored
23
.github/workflows/phpstan.yml
vendored
@@ -9,18 +9,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3.1.0
|
||||
- name: Validate composer.json and composer.lock
|
||||
run: composer validate
|
||||
- name: Cache Composer packages
|
||||
id: composer-cache
|
||||
uses: actions/cache@v3.0.11
|
||||
|
||||
- name: Install composer
|
||||
uses: php-actions/composer@v6
|
||||
|
||||
- name: Run PHPStan
|
||||
uses: php-actions/phpstan@v3
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-php-
|
||||
- name: Install dependencies
|
||||
if: steps.composer-cache.outputs.cache-hit != 'true'
|
||||
run: composer install --prefer-dist --no-progress --no-suggest
|
||||
- name: Run phpstan
|
||||
run: composer run-script phpstan
|
||||
configuration: phpstan.neon.dist
|
||||
memory_limit: 256M
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
parameters:
|
||||
level: 0
|
||||
excludes_analyse:
|
||||
excludePaths:
|
||||
- vendor
|
||||
scanDirectories:
|
||||
- .
|
||||
|
||||
Reference in New Issue
Block a user