This action runs phpcs, phpmd with reviewdog on pull requests to improve code review experience.
Required. Must be in form of github_token: ${{ secrets.github_token }}
'.
Optional. Tool name to use for reviewdog reporter. Useful when running multiple actions with different config.
Optional. The subdirectory where your php code resides.
Optional. Reporter of reviewdog command [github-pr-check,github-pr-review].
It's same as -reporter
flag of reviewdog.
Optional. Arguments to pass to phpcs.
Optional. Arguments to pass to phpmd.
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 }}