This action runs PHP_CodeSniffer with reviewdog.
Required. Must be in form of github_token: ${{ secrets.github_token }}
Optional. Report level for reviewdog [info,warning,error].
It's same as -level
flag of reviewdog.
Reporter of reviewdog command [github-pr-check,github-check,github-pr-review].
Default is github-pr-check.
It's same as -reporter
flag of reviewdog.
Required. Coding standard or path to PHP_CodeSniffer's configuration file
Required. Directory to run PHP_CodeSniffer
name: reviewdog
on: [pull_request]
jobs:
php_codesniffer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: hrysd/action-php_codesniffer@v1
with:
github_token: ${{ secrets.github_token }}
standard: PSR12
target_directory: src
You can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch). Pushing tag manually by yourself also work.
This action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3. ref: https://help.github.com/en/articles/about-actions#versioning-your-action
This reviewdog action template itself is integrated with reviewdog to run lints which is useful for Docker container based actions.
Supported linters:
This repository uses haya14busa/action-depup to update reviewdog version.