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