Skip to content

Commit c1d590b

Browse files
committed
Update phpcs action
1 parent 178c87b commit c1d590b

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/phpcs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ jobs:
2222
- uses: actions/checkout@v2
2323
- name: Install dependencies
2424
run: composer install --dev --prefer-dist --no-progress --no-suggest
25-
- name: PHPCS check
26-
uses: chekalsky/phpcs-action@e269c2f264f400adcda7c6b24c8550302350d495
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
2727
with:
28-
phpcs_bin_path: './vendor/bin/phpcs'
29-
enable_warnings: true
28+
php-version: '7.2'
29+
tools: cs2pr
30+
- name: Run phpcs
31+
run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr

phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<file>tests/PHPUnit</file>
1111

1212
<exclude-pattern>tests/PHPUnit/proxy/*</exclude-pattern>
13+
<exclude-pattern>tests/PHPUnit/Unit/Config/test_files/*</exclude-pattern>
1314
<exclude-pattern>tests/javascript/*</exclude-pattern>
1415
<exclude-pattern>*/vendor/*</exclude-pattern>
1516
<exclude-pattern>*/libs/*</exclude-pattern>

0 commit comments

Comments
 (0)