-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 702 Bytes
/
Copy pathphpcs.yml
File metadata and controls
30 lines (30 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: php_codesniffer
'on':
push:
paths:
- '**.php'
- phpcs.xml
- .github/workflows/phpcs.yml
pull_request:
paths:
- '**.php'
- phpcs.xml
- .github/workflows/phpcs.yml
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v5
with:
fetch-depth: 0
-
name: 'Install PHP_CodeSniffer'
run: "curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar\nphp phpcs.phar --version\n"
-
uses: Novusvetus/action-php_codesniffer@1.2.16
with:
files: '**.php'
scan_all: true
phpcs_path: 'php phpcs.phar'
standard: phpcs.xml