-
Notifications
You must be signed in to change notification settings - Fork 301
33 lines (24 loc) · 894 Bytes
/
phpcs.yaml
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
name: Code style
on: [push, pull_request]
jobs:
run:
if: ${{ !startsWith(github.event.head_commit.message, 'Translation:') }}
runs-on: ${{ matrix.operating-system }}
name: PHP/PHTML/CSS
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-version: ['8.2', '8.3', '8.4']
fail-fast: false
steps:
- uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-version }}
ini-file: 'development'
- uses: actions/checkout@v4
- run: composer validate
- run: composer global require squizlabs/php_codesniffer
- name: PHP
run: ~/.composer/vendor/bin/phpcs --colors --standard=PSR12 --exclude=Generic.Files.LineLength --extensions=php index.php app tests
- name: Style sheets
run: ~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css