-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (37 loc) · 976 Bytes
/
php-qa.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
---
name: 'Quality Assurance'
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
phpstan:
name: 'PHPStan'
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Setup repository
uses: actions/checkout@v4
# Install PHP and tools necessary
- name: Setup PHP
uses: seravo/setup-php@v2
with:
php-version: '8.2'
tools: cs2pr, composer
# Install development dependencies
- name: Install development dependencies
run: composer install --no-interaction --no-progress
# Print PHP_CodeSniffer version
- run: vendor/bin/phpstan --version
# Lint PHP code style
- name: Run PHPStan
run: vendor/bin/phpstan analyze
--no-progress
-c tools/phpstan.neon
--error-format=checkstyle
--memory-limit=1G | cs2pr