Skip to content

Commit 82d4ccf

Browse files
committed
add an action for PHP_CodeSniffer to the GitHub workflow
1 parent 9895536 commit 82d4ccf

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
@@ -78,3 +78,14 @@ jobs:
7878
run: |
7979
php vendor/bin/phpunit --coverage-clover clover.xml --coverage-text
8080
./cc-test-reporter after-build -t clover --exit-code $?
81+
codesniffer:
82+
runs-on: "ubuntu-latest"
83+
steps:
84+
- name: "git checkout"
85+
uses: "actions/checkout@v3"
86+
- name: "Install PHP_CodeSniffer"
87+
run: "curl -OLf https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar"
88+
- name: "check PHP_CodeSniffer version"
89+
run: "php phpcs.phar --version"
90+
- name: "PHP CodeSniffer"
91+
run: "php phpcs.phar"

0 commit comments

Comments
 (0)