-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
40 lines (40 loc) · 1.02 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
name: 'Run php check code with reviewdog'
description: 'Run phpcs, phpmd to check your code'
author: 'Duc Anh (ducla)'
inputs:
github_token:
description: 'GITHUB_TOKEN.'
required: true
reporter:
description: 'Reporter of reviewdog command [github-pr-check,github-pr-review].'
default: 'github-pr-check'
required: false
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
required: false
phpcs_args:
description: 'Arguments to pass to phpcs'
default: '.'
required: false
phpmd_args:
description: 'Arguments to pass to phpmd'
default: '.'
required: false
directory:
description: 'The subdirectory to execute the action in.'
default: '.'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.github_token }}
- ${{ inputs.reporter }}
- ${{ inputs.phpcs_args }}
- ${{ inputs.phpmd_args }}
- ${{ inputs.directory }}
- ${{ inputs.level }}
branding:
icon: 'edit'
color: 'gray-dark'