Skip to content

Commit 30a6fd9

Browse files
burned42javiereguiluz
authored andcommitted
Add phpstan to github actions workflow
1 parent c109bb5 commit 30a6fd9

File tree

4 files changed

+717
-3
lines changed

4 files changed

+717
-3
lines changed

.github/workflows/lint.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
coverage: "none"
4040
extensions: intl
4141
php-version: ${{ matrix.php-version }}
42-
tools: composer:v2
42+
tools: composer:v2, phpstan
4343

4444
- name: "Set composer cache directory"
4545
id: composer-cache
@@ -53,9 +53,12 @@ jobs:
5353
restore-keys: ${{ runner.os }}-${{ matrix.php-version }}-composer-
5454

5555
- name: "Composer install"
56-
id: install
5756
run: composer install --no-interaction --no-progress
5857

58+
- name: Install PHPUnit
59+
id: install
60+
run: vendor/bin/simple-phpunit install
61+
5962
- name: Lint YAML files
6063
if: always() && steps.install.outcome == 'success'
6164
run: ./bin/console lint:yaml config --parse-tags
@@ -87,3 +90,7 @@ jobs:
8790
- name: Check if any dependencies are compromised
8891
if: always() && steps.install.outcome == 'success'
8992
run: /home/runner/.symfony/bin/symfony check:security
93+
94+
- name: Run PHPStan
95+
if: always() && steps.install.outcome == 'success'
96+
run: phpstan analyze

0 commit comments

Comments
 (0)