Skip to content

Commit

Permalink
add an action for PHP_CodeSniffer to the GitHub workflow #14
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Aug 7, 2024
1 parent f64151d commit e051c31
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 @@ -51,3 +51,14 @@ jobs:
# php_version: "${{ matrix.php-version }}"
# configuration: "phpstan.neon"
# path: "exceptions/ src/ tests/"
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 e051c31

Please sign in to comment.