-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (30 loc) · 918 Bytes
/
Copy pathstatic-analysis.yml
File metadata and controls
38 lines (30 loc) · 918 Bytes
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
name: "Static analysis"
on:
pull_request:
paths-ignore:
- "*.md"
push:
branches-ignore:
- 'dependabot/**'
release:
types: [ created ]
jobs:
static-analysis-phpstan:
runs-on: "ubuntu-latest"
name: "Static analysis with PHPStan"
strategy:
fail-fast: false
matrix:
php: ["8.1"]
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Setup PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
coverage: "none"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
- name: "Run a static analysis with phpstan"
run: "vendor/bin/phpstan analyse"