Skip to content

ducla5/laravel-app-reviewdog-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action: Run php check code with reviewdog

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: ducla5/laravel-app-reviewdog-action@v1
        with:
          github_token: ${{ secrets.github_token }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •