-
-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (36 loc) · 1.01 KB
/
code-analysis.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: Code analysis
on:
push:
paths:
- "**.php"
jobs:
phpcs:
name: PHP_CodeSniffer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: "8.3"
extensions: mbstring, dom, fileinfo
tools: phpcs
- uses: ramsey/composer-install@v2
- name: Run PHP_CodeSniffer
run: phpcs --extensions=php app
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: "8.3"
extensions: mbstring, dom, fileinfo
tools: phpstan
- uses: ramsey/composer-install@v2
- name: Run PHPStan
run: phpstan analyse