Skip to content

Commit

Permalink
Add step in PHPCS workflow to run WPCS with PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Jun 12, 2023
1 parent cf0321d commit 8e99359
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/phpcs_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@ jobs:
name: Run PHPCS inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run PHPCS inspection

- name: Run PHPCS inspection with PHP 8.1
uses: rtCamp/action-phpcs-code-review@master
env:
SKIP_FOLDERS: "tests,.github"
GH_BOT_TOKEN: ${{ secrets.RTBOT_TOKEN }}

# Remove this step once WordPress Coding Standards supports PHP 8.0+.
- name: Run PHPCS inspection with PHP 7.4
uses: rtCamp/action-phpcs-code-review@master
env:
SKIP_FOLDERS: "tests,.github"
PHPCS_PHP_VERSION: "7.4"
PHPCS_STANDARD_FILE_NAME: "phpcs.wp.xml"
GH_BOT_TOKEN: ${{ secrets.RTBOT_TOKEN }}

0 comments on commit 8e99359

Please sign in to comment.