forked from matomo-org/device-detector
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 733 Bytes
/
phpcs.yml
File metadata and controls
34 lines (31 loc) · 733 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: PHPCS check
permissions:
actions: read
checks: read
contents: read
deployments: none
issues: read
packages: none
pull-requests: read
repository-projects: none
security-events: none
statuses: none
on:
pull_request:
push:
branches: [ master ]
jobs:
phpcs:
name: PHPCS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: composer install --dev --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: cs2pr
- name: Run phpcs
run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr