forked from docker-php/docker-php
-
-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (31 loc) · 909 Bytes
/
static-analysis.yml
File metadata and controls
39 lines (31 loc) · 909 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
39
name: "Static Analysis"
on:
push:
paths-ignore:
- 'doc/**'
- '.github/**'
pull_request:
paths-ignore:
- 'doc/**'
- '.github/**'
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
with:
php-version: 8.1
tools: composer:v2
coverage: none
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install dependencies
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0
with:
dependency-versions: lowest
- name: Run PHPStan
run: composer run-script phpstan -- --no-progress