Skip to content

A GitHub action that runs a phpcs and reports the result to reviewdog

Notifications You must be signed in to change notification settings

reload/action-phpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-phpcs

A GitHub action that runs a phpcs and reports the result to reviewdog

Prerequisites

  • Composer install has been executed
  • Phpcs is install by composer and available in the composer config bin-dir
  • The code styles used by phpcs are installed and confgured in the .phpcs.xml

Usage

Add a workflow step with the action:

steps:
  - name: Run phpcs
    uses: reload/action-phpcs@<VERSION>
    with:
      reviewdog_token: ${{ secrets.GITHUB_TOKEN }}`

A sub path can be given to the action if the composer.json file is not in the root of the working directory.

Example:

steps:
  - name: Run phpcs
    uses: reload/action-phpcs@<VERSION>
    with:
      path: drupal
      reviewdog_token: ${{ secrets.GITHUB_TOKEN }}`

About

A GitHub action that runs a phpcs and reports the result to reviewdog

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages