-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.21 KB
/
static.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
on: [push]
name: Static analysis
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
tools: phpstan:1.10.55, cs2pr
- name: Download dependencies
uses: ramsey/composer-install@v2
- name: PHPStan
run: phpstan analyze src/ --level=9 --no-progress --error-format=checkstyle | cs2pr
phpcs:
name: PhpCS
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Composer install
uses: php-actions/composer@v6
- name: PHP Code Sniffer
uses: php-actions/phpcs@v1
with:
php_version: 8.3
path: src/
standard: psr12
composer-normalize:
name: Composer Normalize
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
tools: composer-normalize
- name: Normalize
run: composer-normalize --dry-run