File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 32
32
uses : ./
33
33
with :
34
34
path : drupal
35
+ phpcs_path : web/sites/default
35
36
reviewdog_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -4,10 +4,14 @@ inputs:
4
4
reviewdog_token :
5
5
description : ' The Github API token needed for Reviewdog'
6
6
path :
7
- description : ' In which directory should phpcs be sniffing ?'
7
+ description : ' What is the base path (where phpcs config file and composer.json is) ?'
8
8
required : false
9
9
default : ' .'
10
-
10
+ phpcs_path :
11
+ description : ' Which directory should phpcs be sniffing?'
12
+ required : false
13
+ default : ' .'
14
+
11
15
runs :
12
16
using : ' composite'
13
17
steps :
28
32
$(composer config bin-dir)/phpcs --config-set ignore_warnings_on_exit 1
29
33
30
34
# Run code sniffer.
31
- $(composer config bin-dir)/phpcs --report=checkstyle \
35
+ $(composer config bin-dir)/phpcs --report=checkstyle ${{ inputs.phpcs_path }} \
32
36
| reviewdog -f=checkstyle -name=phpcs -reporter=github-pr-check -fail-on-error=true
33
37
shell : bash
34
38
env :
You can’t perform that action at this time.
0 commit comments