Skip to content

Commit

Permalink
Merge pull request #3104 from 10up/chore/issue-3103
Browse files Browse the repository at this point in the history
GH Action - PHPCS: Migrate to use cs2pr
  • Loading branch information
felipeelia authored Nov 1, 2022
2 parents 458dd24 + 69b2866 commit 29f346a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: cs2pr
coverage: none

- name: composer install
run: composer install

- name: PHPCS check
uses: chekalsky/phpcs-action@v1
with:
enable_warnings: true
phpcs_bin_path: './vendor/bin/phpcs elasticpress.php includes --runtime-set testVersion 7.0-'
run: './vendor/bin/phpcs elasticpress.php includes -q --report=checkstyle --runtime-set testVersion 7.0- | cs2pr'

0 comments on commit 29f346a

Please sign in to comment.