-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (55 loc) · 1.67 KB
/
php-codesniffer.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: PHP Codesniffer
# Please use the same settings as make lint-check-errors.
# See: https://github.com/marketplace/actions/php-code-sniffer-php-actions
#
# Note: Putting more than one sources in path (like: 'path: appinfo/ lib/ templates/') doesn't seem to work.
# So we split this into separate steps.
on: [push]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Composer install
uses: php-actions/composer@v6
# we must snif only php folders; we have a step for each one
- name: PHP Code Sniffer appinfo
uses: php-actions/phpcs@v1
with:
php_version: 7.4
version: 3.7.2
standard: PSR12
warning_severity: 0
path: appinfo/
- name: PHP Code Sniffer lib
uses: php-actions/phpcs@v1
with:
php_version: 7.4
version: 3.7.2
standard: PSR12
warning_severity: 0
path: lib/
- name: PHP Code Sniffer templates
uses: php-actions/phpcs@v1
with:
php_version: 7.4
version: 3.7.2
standard: PSR12
warning_severity: 0
path: templates/settings/
- name: PHP Code Sniffer templates
uses: php-actions/phpcs@v1
with:
php_version: 7.4
version: 3.7.2
standard: PSR12
warning_severity: 0
path: templates/wayf/
- name: PHP Code Sniffer templates
uses: php-actions/phpcs@v1
with:
php_version: 7.4
version: 3.7.2
standard: PSR12
warning_severity: 0
path: tests/docker/integration-tests/src/