Skip to content

Commit b9be741

Browse files
committed
#1930 add PHPStan to the coding-standards Github Workflow
1 parent e60128d commit b9be741

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ end_of_line = lf
66
insert_final_newline = true
77
indent_style = space
88
indent_size = 4
9-
trim_trailing_whitespace = true
9+
trim_trailing_whitespace = true
10+
11+
[*.yml]
12+
indent_size = 2

.github/workflows/coding-standards.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,28 @@ jobs:
5353
# The -q option is required until phpcs v4 is released
5454
- name: "Run PHP_CodeSniffer"
5555
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
56+
57+
analysis:
58+
runs-on: "ubuntu-22.04"
59+
strategy:
60+
matrix:
61+
php:
62+
- '8.1'
63+
- '8.2'
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v4
67+
68+
- name: Setup PHP
69+
uses: shivammathur/setup-php@v2
70+
with:
71+
php-version: ${{ matrix.php }}
72+
extensions: curl, mbstring
73+
tools: composer:v2
74+
coverage: none
75+
76+
- name: Install dependencies
77+
run: composer install
78+
79+
- name: Run PHPStan
80+
run: ./vendor/bin/phpstan analyse --no-interaction --no-progress --ansi

0 commit comments

Comments
 (0)