-
-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (24 loc) · 970 Bytes
/
phpstan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: PHPStan
on:
pull_request_target:
jobs:
build:
env:
COMPOSER_ROOT_VERSION: dev-master
runs-on: ubuntu-latest
name: Static analysis
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: "8.3"
tools: cs2pr
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")
- name: Run a static analysis with phpstan/phpstan
run: php vendor/bin/phpstan analyse lib/ -c vendor/solido/php-coding-standards/phpstan.neon --level=8 --no-progress -vvv --memory-limit=2048M --error-format=checkstyle | cs2pr