Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/phpcodesniffer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PHP CodeSniffer

# Controls when the action will run.
on: ['pull_request','push','pull_request_target']
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # important!
- name: Install PHP_CodeSniffer
run: |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --version

- uses: domjudge/action-php-codesniffer@master
with:
files: "**.php" # you may customize glob as needed
scope: files
phpcs_path: php phpcs.phar
standard: .github/workflowscripts/phpruleset.xml
fail_on_errors: false
fail_on_warnings: false
Loading