Skip to content

Commit

Permalink
add an action for PHP_CodeSniffer #16
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Aug 7, 2024
1 parent 8cc7c70 commit 1c9ae77
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,14 @@ jobs:
php_version: "${{ matrix.php-version }}"
configuration: "phpstan.neon"
path: "src/"
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 1c9ae77

Please sign in to comment.