Skip to content

Commit

Permalink
Add an action for PHP_CodeSniffer to GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Aug 7, 2024
1 parent 30656a6 commit 1b8c3f8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,14 @@ jobs:
run: |
php vendor/bin/phpunit --coverage-clover clover.xml --coverage-text
./cc-test-reporter after-build -t clover --exit-code $?
codesniffer:
runs-on: "ubuntu-latest"
steps:
- name: "git checkout"
uses: "actions/checkout@v3"
- name: "Install PHP_CodeSniffer"
run: "curl -OLf https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar"
- name: "check PHP_CodeSniffer version"
run: "php phpcs.phar --version"
- name: "PHP CodeSniffer"
run: "php phpcs.phar"

0 comments on commit 1b8c3f8

Please sign in to comment.