forked from tinovyatkin/action-php-codesniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
33 lines (31 loc) · 1.03 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
name: 'action-php-codesniffer'
description: 'Runs PHP_CodeSniffer on files changed in current PR or even only on lines by author of PR'
author: 'Konstantin Vyatkin <[email protected]>'
inputs:
files:
description: 'files to check'
default: '**.php'
required: false
scope:
description: 'scope to annotate errors or warnings - either "file" to check entire file or "blame" to check only lines changed by author of current PR'
default: 'blame'
required: false
phpcs_path:
description: 'path to phpcs executable'
default: 'phpcs'
required: false
standard:
description: 'Code style standard name (PEAR, ) or path to a phpcs.xml file'
required: false
fail_on_errors:
description: 'Whether action should fail on errors or not, default to true (fails)'
required: false
fail_on_warnings:
description: 'Whether action should fail on warnings or not, default to true (fails)'
required: false
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'wind'
color: 'green'