Add phpstan analysis

This commit is contained in:
Vincent Langlet
2024-11-20 13:23:43 +01:00
committed by Fabien Potencier
parent 8c91bd7093
commit 75d48db822
11 changed files with 79 additions and 16 deletions
+26
View File
@@ -154,3 +154,29 @@ jobs:
- run: bash ./tests/drupal_test.sh
shell: "bash"
phpstan:
name: "PHPStan"
runs-on: 'ubuntu-latest'
strategy:
matrix:
php-version:
- '8.4'
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Install PHP with extensions"
uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: ${{ matrix.php-version }}
ini-values: memory_limit=-1
- run: composer install
- name: "Run tests"
run: vendor/bin/phpstan