Skip to content

Commit 09c1026

Browse files
committed
add phpcs workflow
1 parent 5784407 commit 09c1026

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/phpcs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PHP CodeSniffer
2+
on:
3+
pull_request:
4+
paths:
5+
- "**.php"
6+
- "phpcs.xml"
7+
- ".github/workflows/phpcs.yml"
8+
9+
jobs:
10+
phpcs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Install PHP_CodeSniffer
17+
run: |
18+
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
19+
php phpcs.phar --version
20+
21+
- uses: tinovyatkin/action-php-codesniffer@v1
22+
with:
23+
files: "**.php"
24+
phpcs_path: php phpcs.phar
25+
standard: phpcs.xml

0 commit comments

Comments
 (0)