-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (39 loc) · 1.22 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
name: Static Analysis
on: ['push', 'pull_request']
concurrency:
group: static-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
name: PHP Coding Standards Fixer
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: -v --config=.php-cs-fixer.dist.php --allow-risky=yes
- name: Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'lint: php-cs-fixer'
branch: ${{ github.head_ref }}
phpstan:
runs-on: ubuntu-latest
name: PHPStan - PHP Static Analysis Tool
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2
coverage: none
- name: Install Dependencies
run: composer update --prefer-stable --no-interaction --no-progress
- name: Run PHPStan
run: vendor/bin/phpstan analyse --error-format=github --debug