Skip to content

Commit d998cea

Browse files
committed
add an action for PHP_CodeSniffer to the GitHub workflow #14
1 parent f64151d commit d998cea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,14 @@ jobs:
5151
# php_version: "${{ matrix.php-version }}"
5252
# configuration: "phpstan.neon"
5353
# path: "exceptions/ src/ tests/"
54+
codesniffer:
55+
runs-on: "ubuntu-latest"
56+
steps:
57+
- name: "git checkout"
58+
uses: "actions/checkout@v3"
59+
- name: "Install PHP_CodeSniffer"
60+
run: "curl -OLf https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar"
61+
- name: "check PHP_CodeSniffer version"
62+
run: "php phpcs.phar --version"
63+
- name: "PHP CodeSniffer"
64+
run: "php phpcs.phar"

0 commit comments

Comments
 (0)