Skip to content

Commit 284f7e3

Browse files
committed
ci: fix static analysis workflow
1 parent dd4bbd6 commit 284f7e3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/static-analysis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@ on:
77
- '*.x'
88

99
pull_request:
10+
paths:
11+
- .github/workflows/static-analysis.yml
12+
- composer.*
13+
- phpstan.neon.dist
14+
- src/**
15+
- tests/**
1016

1117
schedule:
1218
- cron: '0 0 * * *'
1319

1420
jobs:
1521
static-analysis-phpstan:
1622

17-
name: Source Code
23+
name: "Static Analysis with PHPStan"
1824
runs-on: ubuntu-latest
1925

2026
steps:
@@ -36,4 +42,4 @@ jobs:
3642
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
3743

3844
- name: Run Static Analysis
39-
run: vendor/bin/phpunit
45+
run: "vendor/bin/phpstan --error-format=table"

0 commit comments

Comments
 (0)