-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (42 loc) · 1.34 KB
/
code-quality.yaml
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
name: Code Quality
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
name: Coding Standards
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
tools: php-cs-fixer, cs2pr
- name: Run PHP CS Fixer
run: php-cs-fixer fix --dry-run --format checkstyle | cs2pr
phpstan:
runs-on: ubuntu-latest
name: Static Analysis
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
tools: phpstan
- name: Install Dependencies
uses: ramsey/composer-install@v2
with:
composer-options: '--prefer-dist'
- name: Install PHPUnit Dependencies
run: vendor/bin/simple-phpunit install
- name: Run PHPStan
run: phpstan analyse --no-progress