pnpk / laravel-app-reviewdog-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Shell 56.7%Language:Dockerfile 43.3%