Skip to content

Commit 49f1447

Browse files
authored
Merge pull request #9 from run-as-root/feature/add-php-stan-to-github-actions
Add phpstan to girhub actions
2 parents 5bfc2d4 + 8eae4ba commit 49f1447

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/test_extension.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,26 @@ jobs:
6767
- name: PHP 8.1 compatibility
6868
run: composer sniffer:php8.1
6969

70+
Static-tests:
71+
runs-on: ubuntu-latest
72+
73+
needs: build
74+
75+
steps:
76+
- uses: actions/checkout@v3
77+
78+
- name: Cache Composer packages
79+
id: composer-cache
80+
uses: actions/cache@v3
81+
with:
82+
path: vendor
83+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
84+
restore-keys: |
85+
${{ runner.os }}-php-
86+
87+
- name: phpstan
88+
run: composer phpstan
89+
7090
PHP-Unit:
7191
runs-on: ubuntu-latest
7292

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ parameters:
22
level: 5
33
paths:
44
- lib
5+
excludePaths:
6+
analyseAndScan:
7+
- lib/Test

0 commit comments

Comments
 (0)