-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
52 lines (43 loc) · 1.2 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
name: 'Run PHPMD with ReviewDog'
description: '🐾 Run PHP Mess Detector with ReviewDog.'
author: 'Mike Bronner'
inputs:
github_token:
description: 'GITHUB_TOKEN'
default: '${{ github.token }}'
level:
description: 'Report level for reviewdog [info,warning,error].'
default: 'warning'
reporter:
description: 'Reporter of reviewdog command [github-pr-check,github-pr-review].'
default: 'github-pr-check'
standard:
description: Coding standard or path to configuration file
default: 'cleancode,codesize,controversial,design,naming,unusedcode'
target_directory:
description: Directory to run checks against.
default: 'src'
exclude:
description: List of exclude patterns
default: ''
name:
description: The name of the check
default: 'PHPMD'
baseline_file:
description: A baseline file
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.github_token }}
- ${{ inputs.level }}
- ${{ inputs.reporter }}
- ${{ inputs.standard }}
- ${{ inputs.target_directory }}
- ${{ inputs.exclude }}
- ${{ inputs.name }}
- ${{ inputs.baseline_file }}
branding:
icon: 'check-circle'
color: 'green'