forked from php-actions/phpstan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
54 lines (51 loc) · 1.65 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
name: PHPStan for WordPress
description: PHP Static Analysis in Github Actions for WordPress.
inputs:
command:
description: The command to run (analyse [default], clear-result-cache, dump-deps, help, list, worker)
required: true
default: analyse
path:
description: Path(s) with source code to run analysis on
required: true
configuration:
description: Configuration file location
required: false
level:
description: Level of rule options - the higher the stricter
required: false
paths_file:
description: Path to a file with a list of paths to run analysis on
required: false
autoload_file:
description: Project's additional autoload file path
required: false
error_format:
description: Format in which to print the result of the analysis
required: false
generate_baseline:
description: Path to a file where the baseline should be saved
required: false
memory_limit:
description: Memory limit for analysis
required: false
args:
description: Extra arguments to pass to the phpstan binary
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
action_command: ${{ inputs.command }}
action_path: ${{ inputs.path }}
action_configuration: ${{ inputs.configuration }}
action_level: ${{ inputs.level }}
action_paths_file: ${{ inputs.paths_file }}
action_autoload_file: ${{ inputs.autoload_file }}
action_error_format: ${{ inputs.error_format }}
action_generate_baseline: ${{ inputs.generate_baseline }}
action_memory_limit: ${{ inputs.memory_limit }}
action_args: ${{ inputs.args }}
branding:
icon: 'check-square'
color: 'purple'