Skip to content

Commit 8c56ec6

Browse files
committed
add an action for PHP_CodeSniffer #16
1 parent 8cc7c70 commit 8c56ec6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)