Skip to content

Commit a50f9cd

Browse files
committed
tool(github): Use 10UP WPCS Action
1 parent f4e0300 commit a50f9cd

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

Diff for: .github/workflows/php-ci.yml

+4-29
Original file line numberDiff line numberDiff line change
@@ -62,37 +62,12 @@ jobs:
6262
name: Check Coding Standards
6363
runs-on: ubuntu-latest
6464
steps:
65-
- name: Checkout code
66-
uses: actions/checkout@v2
67-
68-
- name: Setup PHP
69-
uses: shivammathur/setup-php@v2
70-
with:
71-
php-version: 7.4
72-
tools: composer
73-
extensions: mysql
74-
coverage: none
75-
76-
- name: Get composer cache directory
77-
id: composer-cache
78-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
79-
80-
- name: Cache Composer packages
81-
uses: actions/cache@v2
82-
with:
83-
path: ${{ steps.composer-cache.outputs.dir }}
84-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
85-
restore-keys: |
86-
${{ runner.os }}-php-
87-
88-
- name: Install dependencies
89-
run: composer install --prefer-dist --no-progress
90-
91-
- name: PHPCS check
92-
uses: chekalsky/phpcs-action@v1
65+
- uses: actions/checkout@v2
66+
- name: WPCS check
67+
uses: 10up/[email protected]
9368
with:
9469
enable_warnings: true
95-
phpcs_bin_path: './vendor/bin/phpcs'
70+
use_local_config: true
9671

9772

9873

0 commit comments

Comments
 (0)