-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1003 Bytes
/
Copy pathphpcs.yml
File metadata and controls
45 lines (37 loc) · 1003 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
40
41
42
43
44
45
name: PHPCS Check
on:
pull_request_target:
branches:
- master
- development
paths:
- '**/*.php' # Run only when PHP files change
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
phpcs:
name: PHPCS Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}
- name: Setup Node.js 22.16.0
uses: actions/setup-node@v2
with:
node-version: "22.16.0"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
ini-values: 'memory_limit=1G'
coverage: none
tools: cs2pr
- name: Setup composer
run: composer setup
- name: PHPCS Permission
run: composer permission
- name: Run PHPCS checks
run: composer phpcs