mirror of
https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2025-08-30 03:11:24 +08:00
Minor edits to the workflow - updated some version numbers and added spaces in the workflow file to make it a bit more readable
parent
c43451cc62
commit
b6eda7096e
1 changed files with 7 additions and 3 deletions
|
@ -17,11 +17,12 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
phpcs:
|
||||
name: PHPCS
|
||||
runs-on: ubuntu-20.04
|
||||
name: PHPCS check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup PHP
|
||||
uses: "shivammathur/setup-php@v2"
|
||||
with:
|
||||
|
@ -29,11 +30,14 @@ jobs:
|
|||
ini-values: "memory_limit=1G"
|
||||
coverage: none
|
||||
tools: cs2pr
|
||||
|
||||
- name: Install Composer dependencies
|
||||
uses: "ramsey/composer-install@v2"
|
||||
|
||||
- name: Run PHPCS checks
|
||||
continue-on-error: true
|
||||
run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml
|
||||
|
||||
- name: Show PHPCS results in PR
|
||||
run: cs2pr ./phpcs-report.xml
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue