-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (46 loc) · 1.39 KB
/
_phpstan.yml
File metadata and controls
51 lines (46 loc) · 1.39 KB
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: Phpstan
on:
workflow_call:
inputs:
PHP_VERSION:
required: true
type: string
PHP_EXTENSIONS:
required: true
type: string
PHP_INI_PROPERTIES:
required: true
type: string
COMPOSER_FLAGS:
required: true
type: string
CACHE_KEY:
required: true
type: string
jobs:
run:
name: Run
runs-on: ubuntu-latest
timeout-minutes: 5
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-phpstan
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup PHP
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
with:
php-version: ${{ inputs.PHP_VERSION }}
extensions: ${{ inputs.PHP_EXTENSIONS }}
ini-values: ${{ inputs.PHP_INI_PROPERTIES }}
coverage: xdebug
tools: composer:v2
- name: Install composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0
with:
composer-options: ${{ inputs.COMPOSER_FLAGS }}
custom-cache-key: ${{ inputs.CACHE_KEY }}
- name: Run Phpstan
run: |
vendor/bin/phpstan analyse --ansi --error-format=github