-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
86 lines (82 loc) · 2.49 KB
/
action.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
inputs:
executable:
description: |
Specifies the path to the phpstan executable. Defaults to configured $PATH/current working directory.
required: false
default: phpstan
php:
description: |
Specifies the php binary to run phpstan with. Defaults to configured $PATH/current working directory.
required: false
default: php
memory-limit:
description: |
Specifies the memory limit in the same format php.ini accepts.
required: false
default: 1G
analyse:
description: |
A space seperated list of paths to analyse.
required: false
default: undefined
level:
description: |
Specifies the rule level to run. https://phpstan.org/user-guide/rule-levels
Possible values: 1-9
required: false
default: 9
config:
description: |
Path to PHPStan configuration file. Relative paths are resolved based on the current working directory.
required: false
default: ""
no-progress:
description: |
Turns off the progress bar.
required: false
default: "true"
debug:
description: |
Instead of the progress bar, it outputs lines with each analysed file before its analysis.
required: false
default: ""
quiet:
description: |
Silences all the output. Useful if you’re interested only in the exit code.
required: false
default: ""
autoload-file:
description: |
If your application uses a custom autoloader, you should set it up and register in a PHP file that is
passed to this CLI option. Relative paths are resolved based on the current working directory.
required: false
default: ""
error-format:
description: |
Specifies a custom error formatter. https://phpstan.org/user-guide/output-format
required: false
default: github
ansi:
description: |
Overrides the auto-detection of whether colors should be used in the output and how nice the progress bar should be.
required: false
default: ""
xdebug:
description: |
Phpstan turns off XDebug if it’s enabled to achieve better performance.
required: false
default: ""
outputs:
exit-code:
description: Exit code provided from executing the analysis.
passed:
description: True or false depending on the result of the analysis.
name: Run PHPStan Action
description: GitHub action for running phpstan in an actions environment.
author: NxtLvLSoftware Solutions
branding:
icon: settings
color: blue
runs:
using: node16
main: dist/index.js