-
-
Notifications
You must be signed in to change notification settings - Fork 30
39 lines (34 loc) · 767 Bytes
/
Copy pathphpcs.yml
File metadata and controls
39 lines (34 loc) · 767 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
31
32
33
34
35
36
37
38
39
name: PHP_CodeSniffer
on:
push:
branches:
- main
paths:
- '**.php'
- phpcs.xml
- composer.json
- composer.lock
- .github/workflows/phpcs.yml
pull_request:
paths:
- '**.php'
- phpcs.xml
- composer.json
- composer.lock
- .github/workflows/phpcs.yml
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer
- name: Install Composer dependencies
uses: ramsey/composer-install@v4
- name: Detect coding standard violations
run: ./vendor/bin/phpcs