Skip to content

Commit 804729e

Browse files
committed
phpstan CI
1 parent 73bbefc commit 804729e

File tree

3 files changed

+76
-2
lines changed

3 files changed

+76
-2
lines changed

.github/workflows/phpstan.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
submodules: true
15+
- uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: "8.3"
18+
tools: composer
19+
- run: composer install --dev
20+
- run: ./vendor/bin/phpstan --memory-limit=-1 analyse ./resources/

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"require-dev": {
88
"phpunit/phpunit": ">=12",
99
"robiningelbrecht/phpunit-coverage-tools": "<2",
10-
"squizlabs/php_codesniffer": "*"
10+
"squizlabs/php_codesniffer": "*",
11+
"phpstan/phpstan": "^2.1"
1112
},
1213
"config": {
1314
"platform": {

composer.lock

Lines changed: 54 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)