Skip to content

pnpk/laravel-app-reviewdog-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action: Run php check code with reviewdog

php8.1のenumに対応。

This action runs phpcs, phpmd with reviewdog on pull requests to improve code review experience.

Inputs

github_token

Required. Must be in form of github_token: ${{ secrets.github_token }}'.

tool_name

Optional. Tool name to use for reviewdog reporter. Useful when running multiple actions with different config.

directory

Optional. The subdirectory where your php code resides.

reporter

Optional. Reporter of reviewdog command [github-pr-check,github-pr-review]. It's same as -reporter flag of reviewdog.

phpcs_args

Optional. Arguments to pass to phpcs.

phpmd_args

Optional. Arguments to pass to phpmd.

Example usage

Minimum Usage Example

name: php-check-code
on: [pull_request]
jobs:
  php-check-code:
    name: runner / php-check-code
    runs-on: ubuntu-latest
    steps:
      - name: Check out code into the workspace
        uses: actions/checkout@v2
      - name: Check Code
        uses: pnpk/[email protected]
        with:
          github_token: ${{ secrets.github_token }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 56.7%
  • Dockerfile 43.3%