-
Notifications
You must be signed in to change notification settings - Fork 2
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@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Setup PHP
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # v2.35.5
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@3cf229dc2919194e9e36783941438d17239e8520 # v3.1.1
with:
composer-options: ${{ inputs.COMPOSER_FLAGS }}
custom-cache-key: ${{ inputs.CACHE_KEY }}
- name: Run Phpstan
run: |
vendor/bin/phpstan analyse --ansi --error-format=github