Skip to content

Commit d2a2ffa

Browse files
committed
Run PHPStan
1 parent 73c750d commit d2a2ffa

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/phpstan.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Update stubs"
4+
on:
5+
pull_request:
6+
paths:
7+
- 'extractor/**'
8+
- '.github/workflows/phpstan.yml'
9+
push:
10+
branches:
11+
- "main"
12+
paths:
13+
- 'extractor/**'
14+
- '.github/workflows/phpstan.yml'
15+
16+
jobs:
17+
phpstan:
18+
name: "PHPStan"
19+
runs-on: "ubuntu-latest"
20+
steps:
21+
- name: "Checkout"
22+
uses: actions/checkout@v4
23+
- name: "Install PHP"
24+
uses: "shivammathur/setup-php@v2"
25+
with:
26+
coverage: "none"
27+
php-version: "8.3"
28+
- name: "Install dependencies"
29+
run: "composer install"
30+
working-directory: ./extractor
31+
- name: "Run PHPStan"
32+
working-directory: ./extractor
33+
run: "vendor/bin/phpstan"

0 commit comments

Comments
 (0)