Skip to content

Commit 545bb14

Browse files
authored
Merge a28ba3a into 16edaf6
2 parents 16edaf6 + a28ba3a commit 545bb14

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ jobs:
3232
uses: ./
3333
with:
3434
path: drupal
35+
phpcs_path: web/sites/default
3536
reviewdog_token: ${{ secrets.GITHUB_TOKEN }}

action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ inputs:
44
reviewdog_token:
55
description: 'The Github API token needed for Reviewdog'
66
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)?'
88
required: false
99
default: '.'
10-
10+
phpcs_path:
11+
description: 'Which directory should phpcs be sniffing?'
12+
required: false
13+
default: '.'
14+
1115
runs:
1216
using: 'composite'
1317
steps:
@@ -28,7 +32,7 @@ runs:
2832
$(composer config bin-dir)/phpcs --config-set ignore_warnings_on_exit 1
2933
3034
# Run code sniffer.
31-
$(composer config bin-dir)/phpcs --report=checkstyle \
35+
$(composer config bin-dir)/phpcs --report=checkstyle ${{ inputs.phpcs_path }} \
3236
| reviewdog -f=checkstyle -name=phpcs -reporter=github-pr-check -fail-on-error=true
3337
shell: bash
3438
env:

0 commit comments

Comments
 (0)